[Pay on 6/18] When setting an unacceptable password the error message doesn't fit user's expectation
Platform - version:
Web
Action Performed (reproducible steps): trigger password reset make sure you're logged out navigate to here: http://expensify.cash/#/setpassword/[code here] make sure you have credentials.login key set to your email address in local storage send a weak password
Expected Result: An error that makes sense to the user's action and context
Requirements to be shown:
- [ ] Update the login page to include the password requirements. Otherwise, users can get stuck without ever knowing why.
- [ ] do front end validation so that we don't make the API call to set the password if the user's entry does not meet the requirements.
- [ ] if front end validation passes but there's some other error from the API, we should show that error (today we just spin forever).
Password must include: • a minimum of 8 characters • 1 number • 1 lowercase character • 1 uppercase character
Actual Result: message is:
Passwords provided are not acceptable
However to a user's perspective they have only entered one password. This error doesn't make sense to me from that perspective.
Notes/Photos/Videos:

Logs - JS/Android/iOS (if applicable): {"code":666,"jsonCode":402,"type":"Expensify\Libs\Error\ExpError","UUID":"03579dd0-476e-4865-b90b-371af0881280","message":"Passwords provided are not acceptable","title":"Bad password","data":[],"htmlMessage":"","requestID":"08592ec61d000042694e958000000001"}
Triggered auto assignment to @koswalto (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
Triggered auto assignment to @flodnv (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Triggered auto assignment to @thienlnam (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Sorry, went to unassign myself but tricked Melvin in the process
Could we get a copy for this please? @Expensify/marketing
Something to indicate that the entered password does not meet the specified requirements
Ah, I think you're looking to add the "Waiting for copy" label. I'll do that and it should auto-assign one of us from the Marketing Content team. Thanks!
Oh weiiiiird it's not in the this repo. I'll take this one! Gimme a few.
What qualifies a password as "not acceptable" on our end? We should basically be telling them two things (1) what happened that caused the error and (2) what they can do to resolve it. Hope this helps, thank you!
@jamesdeanexpensify Thanks for taking this!
It looks like our current requirements for a, acceptable password is that
- Must be greater than or equal to 8 in length
- Must contain a lowercase letter, an uppercase letter, and a number
Can it contain special characters, or only alphanumeric?
ooh, i opened an issue for this a while back with copy for what we need to say for the reqs/ what we should be checking for:
https://github.com/Expensify/Expensify/issues/149016
(basically, we should: show reqs from that start, then do front end validation so that we don't make the API call to set the password if the user's entry doesn't meet reqs, and then if there's a different error from the API, show the "friendly" API error text)
(reqs being)
Password must include: • a minimum of 8 characters • 1 number • 1 lowercase character • 1 uppercase character
Oh awesome @sylveawong! Thanks for that - I copied the requirements into the issue and we'll just make this the external issue
@anthony-hull would you like to work on this issue? If so the job in Upwork will pay $250 and their will be a $150 bonus for proposing the issue (you need to fix the issue in order to get the bonus).
@koswalto assigned back to you, once we here back from @anthony-hull, can you create the Upwork job then hire @anthony-hull if he wants the job?
I'm not working on contributor issues @mallenexpensify -- I just did my triage so I'm unassigning myself here 👍
Sorry about that @koswalto , I jumped the gun
Hi team, yes I would like to work on this issue thank you for getting back to me!
HOLD on @anthony-hull accepting the issue. https://www.upwork.com/jobs/~01b9b67d1f16f3c564
Hi @mallenexpensify I've submitted a proposal on upwork.
Do you wish me to write a technical proposal here still?
@thienlnam I'm assigning back to you since you were additionally auto-assigned. What would you like to see from @anthony-hull before he starts working on the issue?