Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

"Password reset" success message is displayed when using an invalid code #6495

Closed
SorinaFlorean opened this issue Aug 24, 2018 · 6 comments
Closed
Assignees

Comments

@SorinaFlorean
Copy link

Environment:
Win10, Stage server - Train 119
Prerequisites: Account recovery is enabled.

Steps to reproduce:

  1. From Sign In page, tap on "Forget password?";
  2. Go to email and choose "create new password";
  3. Enter an invalid recovery key.

Actual results: when tapping on "Confirm recovery key" option the message is displayed "Password reset successfully. Sign in to continue." even if the key is invalid.

Expected results: the message is not displayed because the password wasn't changed yet.

2018_08_24_14_36_46_sign_in_to_continue_to_firefox_sync_firefox_nightly

@vbudhram
Copy link
Contributor

@SorinaFlorean I am unable to reproduce this. When the Invalid recovery key error is displayed, the page does not transition to Sign-in page. I tried submitting multiple invalid keys as well with no luck. Is there an extra step that I might be missing?

@vbudhram
Copy link
Contributor

@SorinaFlorean Are you still experiencing this issue?

@SorinaFlorean
Copy link
Author

@vbudhram yes, tested today and the issue is still displayed. On one monitor the green message is displayed, and on the second one, the invalid password is typed.

@vbudhram
Copy link
Contributor

vbudhram commented Oct 3, 2018

Some additional notes on this issue

  • When a user attempts to use a recovery key they exchange the passwordForgotToken for an accountResetToken
  • The Reset email sent window, is polling behind the scenes for a password change event and detects it during the token exhange
  • Upon detecting it, redirects for the user to login

@SorinaFlorean
Copy link
Author

Tested this issue on Train 126 and now if I enter an invalid recovery key the message "Sign in to continue is displayed". I think it will be more accurate to not show anything if we don't enter a valid key. @vbudhram what do you think?

@vbudhram
Copy link
Contributor

@SorinaFlorean Sorry for late response, I am ok with removing the Sign in to continue. However, because of the way account recovery works, we wouldn't be able to detect a valid or invalid key to choose which is shown. I think this is ok because the text seems duplicate anyways.

screen shot 2018-12-11 at 11 08 47 am

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

No branches or pull requests

5 participants