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

Reset Password Fix #419

Merged
merged 2 commits into from
Jul 29, 2020
Merged

Reset Password Fix #419

merged 2 commits into from
Jul 29, 2020

Conversation

leon-i
Copy link
Contributor

@leon-i leon-i commented Jul 28, 2020

Resolves #416

Reset password modal now rejects your new password if it is the same as the inputted current password. Updated onChange function of ResetPasswordModalBase 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).

@colbymorrison colbymorrison self-requested a review July 28, 2020 23:50
Copy link
Contributor

@colbymorrison colbymorrison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! We may want to discuss how to do this in the Forgot Password case, though it will be a bit trickier since we don't ask them to input their current password.

@colbymorrison
Copy link
Contributor

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.

@ibeckermayer ibeckermayer merged commit deed6da into dev Jul 29, 2020
@ibeckermayer ibeckermayer deleted the reset-password-fix branch July 29, 2020 16:04
@ibeckermayer
Copy link
Contributor

ibeckermayer commented Jul 29, 2020

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: #416 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When resetting password, new password can't be same as curreent password
3 participants