-
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
Logic to support closed account receiving a link to set password and for unvalidated and closed accounts to get the email the moment they log into ecash #2745
Conversation
i accidentally used puller bear before putting the PR for review so I removed the latest pullerbear assignee. |
Bump @Gonals and @AndrewGable for review |
Andrew is OOO for the week so adding another reviewer. |
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.
One spelling fix & a requested comment improvement; neither are blockers though :D
* | ||
* @param {String} [login] | ||
*/ | ||
function reopenAccount(login = credentials.login) { |
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.
NAB; Why are we defaulting login
to credentials.login
here and in resendValidationLink
? Rephrased: When / why would a passed-in login
string be different from what's stored in credentials.login
?
I believe this has to do with unvalidated / closed accounts (the topic of your PR), but I think it would be useful to make this clear in the function comment
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.
So when you enter an email it hits this flow - https://github.com/Expensify/Expensify.cash/pull/2745/files#diff-283c48b7349b0bf7aba66da8891bc8a9f9df70664bd06e7a875f56b19c6c02f9R126 and credentials.login is not set yet that's why we pass the provided email.
But when you click resent link, it hits this flow - https://github.com/Expensify/Expensify.cash/pull/2745/files#diff-c075eec38f8adc854c238b1d4cfeba1ed3e5de0aa740aa78a658ffe3a53814f9R62 and does not need to pass an email since its in credentials.login. Does that make sense?
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.
Giggidy, LGTM 💪
// Weather or not the account is validated | ||
// Whether or not the account is validated |
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.
😄
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.
¡Excillente!
🚀 Deployed to staging in version: 1.0.43-5🚀
|
🚀 Deployed to production in version: 1.0.44-0🚀
|
Details
On HOLD till I get some confirmation in the issue.Fixed Issues
Fixes https://github.com/Expensify/Expensify/issues/163196
Tests
delete from notifications;
select * from notifications
and confirm you see a "SetCashPassword" template notification.$this->parameters['to']
with your gmail test account otherwise the validate code won't workphp /vagrant/Web-Expensify/script/notifyall.php
.QA Steps
None. Its a little involved with multiple flows and cannot be tested on staging so once this is live I'll ask tom to test.
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android