-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix forgot password functionality for validated logins #5398
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and tests well for all cases:
- New user sign up + set password
- Resend validate code for unvalidated user
- Reset password for validated user
Adding CP staging label to fix the deploy blocker |
|
Fix forgot password functionality for validated logins (cherry picked from commit a609010)
🚀 Cherry-picked to staging by @Jag96 in version: 1.1.0-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
While retesting this on iOS and Android. I'm unable to proceed after setting up the new passwords. I'm getting the same message in Android and in iOS there no message at all (Getting the videos) In Web it was a pass 🎉 |
Ok so just as I was recording the issue I was unable to reproduce anymore 🤯 Checking with the team if this is a pass or not just to double check |
I just tested and confirmed it worked w/ my expensifail account. Note that if you click the same link a 2nd time the error message won't show up, this is the same behavior that existed before the issue and will be updated in #5406. |
Yeah I just tested again and it was a pass too. Checking this off the list 🎉 |
@Jag96 both @MitchExpensify and I were running into issues here.
This should be working correctly since the changes are on prod, right? |
Same for [email protected] just now |
I also had no issues validating or resetting password on OldDot, so this seems directly tied to this PR. Let us know if we're missing something or if we can provide any other info here. |
Looking into it |
Ok so here is what we've found. There are two issues, each reproducible on staging: ISSUE 1 - the password is getting set in the backend but users don't get signed into their account as expected. Reproduction steps:
ISSUE 2 - when hitting the loading screen, users can click "Set Password" repeatedly, which triggers OldDot validation links
|
Details
This PR fixes a deploy blocker and fixes the error mentioned in https://github.com/Expensify/App/pull/5218/files#r712306088. Note this PR does not implement the graceful handling of error messages and resending the validation link, it only fixes the issue preventing non-validated accounts to set a new password.
Fixed Issues
$ #5384
Tests
Run the tests from #5218 to confirm no regressions
./script/clitools.sh generator:account
, then run./script/clitools.sh generator:domain
to generate a domain with it as its admin.DEV_EMAILS
const in _.config.local.php.vssh php ./Web-Expensify/script/notifyall.php
.<baseURL>/setpassword/<accountID>/<validateCode>
.Confirm already validated logins can continue to newdot after using a new validate link
QA Steps
And regressions on staging:
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android