Skip to content

Commit

Permalink
Merge pull request #398 from cap-md089/grioux/MakePWResetEmailMoreDes…
Browse files Browse the repository at this point in the history
…criptive

update: add password length warning to outgoing password reset emails
  • Loading branch information
grioux-neo committed Jan 2, 2024
2 parents 40bf89d + 833d88d commit f77b8f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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

0 comments on commit f77b8f2

Please sign in to comment.