Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

push to prod #817

Merged
merged 10 commits into from
Jul 17, 2024
Binary file removed client/src/assets/about/execs/vedant_pfp.png
Binary file not shown.
Binary file added client/src/assets/about/execs/vedant_pfp.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion client/src/components/Navbar/Navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ li {
position: fixed;
background-color: var(--navbar-bg);
width: 100%;
height: 60px;
height: 50px;

filter: drop-shadow(0px -2px 5px rgba(0, 0, 0, 0.25));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
transition: transform 200ms, opacity 500ms;
&:hover {
transform: scale(1.03);
cursor: pointer;
cursor: url('../../../../assets/cursor/cursor-2t4.png'), auto; // Apply custom cursor here
}
h1 {
font-size: 28px;
Expand Down
32 changes: 16 additions & 16 deletions client/src/pages/Registration/RegistrationFields.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,19 @@ export const fields = {
noEdit: false,
localStorageKey: 'registration-moveToToronto',
},
photograph: {
type: 'radio',
label: 'Are you okay with being photographed during Frosh Week?',
values: ['Yes', 'No'],
initialSelectedIndex: 0,
noEdit: true,
localStorageKey: 'registration-photograph',
},
priceInfo: {
type: 'label',
label: 'The price of one Frosh Week ticket is 130 CAD.',
isBold: true,
},
bursaryRequested: {
type: 'radio',
label: 'Do you require any bursary or financial aid for your Frosh Week ticket?',
Expand All @@ -476,24 +489,10 @@ export const fields = {
noEdit: false,
localStorageKey: 'registration-bursary',
},
photograph: {
type: 'radio',
label: 'Are you okay with being photographed during Frosh Week?',
values: ['Yes', 'No'],
initialSelectedIndex: 0,
noEdit: true,
localStorageKey: 'registration-photograph',
},
marketing: {
type: 'checkbox',
label: 'How did you hear about F!rosh Week?',
values: [
'Instagram',
'First Year News Feed',
'Word of Mouth',
'Discord',
'Other',
],
values: ['Instagram', 'First Year News Feed', 'Word of Mouth', 'Discord', 'Other'],
isRequiredInput: false,
noEdit: false,
localStorageKey: 'registration-marketing',
Expand All @@ -508,7 +507,8 @@ export const fields = {
marketingOther: {
type: 'text',
inputType: 'textArea',
label: 'If you heard about F!rosh Week through a different method not listed above, please list it here.',
label:
'If you heard about F!rosh Week through a different method not listed above, please list it here.',
placeholder: 'Facebook',
hasRestrictedInput: true,
isRequiredInput: false,
Expand Down
2 changes: 1 addition & 1 deletion client/src/util/about/execs.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import oc1Photo from '../../assets/about/execs/Lily_pfp.png';
import oc2Photo from '../../assets/about/execs/vedant_pfp.png';
import oc2Photo from '../../assets/about/execs/vedant_pfp.webp';
import vcFinance from '../../assets/about/execs/finance_pfp.png';
import vcEvents1 from '../../assets/about/execs/vc-events_pfp.png';
import vcEvents2 from '../../assets/about/execs/events_pfp.png';
Expand Down
2 changes: 1 addition & 1 deletion server/src/controllers/UserController.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ const UserController = {
const { email, password, token } = req.body;
const result = await UserServices.validatePasswordResetToken(token);
const existingUser = await UserServices.getUserByEmail(email);
if (!existingUser || existingUser.email !== result.email) {
if (!existingUser || existingUser.email !== result.userEmail) {
next(new Error('INVALID_PASSWORD_RESET_EMAIL'));
} else {
await UserServices.updatePassword(email, password);
Expand Down
Loading