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

update: add password length warning to outgoing password reset emails #398

Merged
merged 2 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default class PasswordForm extends React.Component<
Please enter and confirm a password.
<br />
<br />
New update effective January 1st, 2024: All passwords must be at least 11 characters
New update effective January 1st, 2024: All new passwords must be at least 11 characters
in length. To read more about this change, please visit{' '}
<a href="https://github.com/cap-md089/evmplus-guides/wiki/Password-policy">
our user guide
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ const setupEmail = (member: Member) => (email: string) => (token: string): Email
)}. \
If you did not request this action, you can safely ignore this email. \
<a href="${url}/finishpasswordreset/${token}">Go here</a> to reset your password. \
This link will expire within 24 hours.`,
This link will expire within 24 hours. Please note that effective 1 Jan 2024 \
all new passwords must be at least 11 characters in length.`,
textBody: `We have deteced that a password reset was requested for you, ${getFullMemberName(
member,
)}. \
If you did not request this action, you can safely ignore this email. \
This link will expire within 24 hours.\n\nLink: ${url}/finishpasswordreset/${token}`,
This link will expire within 24 hours. Please note that effective 1 Jan 2024 \
all new passwords must be at least 11 characters in length.\n\nLink: ${url}/finishpasswordreset/${token}`,
});

const getMemberAndSendEmail = (
Expand Down