App icon indicating copy to clipboard operation
App copied to clipboard

[Pay on 6/18] When setting an unacceptable password the error message doesn't fit user's expectation

Open anthony-hull opened this issue 5 years ago • 48 comments

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:

image

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"}

anthony-hull avatar Feb 19 '21 14:02 anthony-hull

Triggered auto assignment to @koswalto (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Mar 31 '21 20:03 MelvinBot

Triggered auto assignment to @flodnv (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Apr 12 '21 15:04 MelvinBot

Triggered auto assignment to @thienlnam (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Apr 12 '21 15:04 MelvinBot

Sorry, went to unassign myself but tricked Melvin in the process

koswalto avatar Apr 12 '21 15:04 koswalto

Could we get a copy for this please? @Expensify/marketing

Something to indicate that the entered password does not meet the specified requirements

thienlnam avatar Apr 12 '21 15:04 thienlnam

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!

jamesdeanexpensify avatar Apr 12 '21 16:04 jamesdeanexpensify

Oh weiiiiird it's not in the this repo. I'll take this one! Gimme a few.

jamesdeanexpensify avatar Apr 12 '21 16:04 jamesdeanexpensify

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 avatar Apr 12 '21 17:04 jamesdeanexpensify

@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

thienlnam avatar Apr 13 '21 19:04 thienlnam

Can it contain special characters, or only alphanumeric?

jamesdeanexpensify avatar Apr 13 '21 19:04 jamesdeanexpensify

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

sylveawong avatar Apr 13 '21 22:04 sylveawong

Oh awesome @sylveawong! Thanks for that - I copied the requirements into the issue and we'll just make this the external issue

thienlnam avatar Apr 20 '21 18:04 thienlnam

@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?

mallenexpensify avatar Apr 22 '21 18:04 mallenexpensify

I'm not working on contributor issues @mallenexpensify -- I just did my triage so I'm unassigning myself here 👍

koswalto avatar Apr 23 '21 15:04 koswalto

Sorry about that @koswalto , I jumped the gun

mallenexpensify avatar Apr 23 '21 19:04 mallenexpensify

Hi team, yes I would like to work on this issue thank you for getting back to me!

anthony-hull avatar Apr 27 '21 13:04 anthony-hull

HOLD on @anthony-hull accepting the issue. https://www.upwork.com/jobs/~01b9b67d1f16f3c564

mallenexpensify avatar Apr 28 '21 21:04 mallenexpensify

Hi @mallenexpensify I've submitted a proposal on upwork.

anthony-hull avatar Apr 30 '21 09:04 anthony-hull

Do you wish me to write a technical proposal here still?

anthony-hull avatar Apr 30 '21 09:04 anthony-hull

@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?

mallenexpensify avatar Apr 30 '21 23:04 mallenexpensify