Closed leon-i closed 4 years ago
Looking back at Slack, this issue was in regard to the new user case, when we ask new users to change their password on their first login. This uses the same code as the Forgot Password case, both use ChangePasswordModal
. I think this PR is still good, but if we merge as is, we should make another issue for those cases.
Looking back at Slack, this issue was in regard to the new user case, when we ask new users to change their password on their first login. This uses the same code as the Forgot Password case, both use ChangePasswordModal. I think this PR is still good, but if we merge as is, we should make another issue for those cases.
See: https://github.com/covidwatchorg/portal/issues/416#issuecomment-665756640
Resolves #416
Reset password modal now rejects your new password if it is the same as the inputted current password. Updated
onChange
function ofResetPasswordModalBase
to use a switch statement for better readability/efficiency.Note: this does not fix issues associated with the "forgot your password" reset via the login page (you are able to use the same password as the previous).