App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2022-02-08] Improve UX of Setting a password on account sign up with expired or malformed token

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

Expected Result:

When a user tries to set their password during the new user flow and uses an expired or malformed magic token. The form to be replaced by the following copy: This set password link is invalid or has expired. A new one is waiting for you in your email inbox!

Actual Result:

Error was as follows: image The user is able to keep re-submitting the form from an unrecoverable and invalid state.

Action Performed:

trigger password reset make sure you're logged out navigate to here: http://expensify.cash/setpassword/[USERID]/[RESETCODE] make sure you have credentials.login key set to your email address in local storage submit a valid password

Platform:

Where is this issue occurring?

Web

Upwork job link- https://www.upwork.com/jobs/~01ee9af3d9febfb893

View all open jobs on Upwork

anthony-hull avatar May 27 '21 19:05 anthony-hull

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

MelvinBot avatar May 27 '21 19:05 MelvinBot

This looks like it has been changed to something more useful in the backend: image Possibly still some call to action to resend a code for the user would be good?

anthony-hull avatar Jun 04 '21 15:06 anthony-hull

Hm, when I tried to reproduce this, I got a privacy error:

image

I'm going to add the eng label to have someone else take a look.

lschurr avatar Jun 07 '21 19:06 lschurr

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

MelvinBot avatar Jun 07 '21 19:06 MelvinBot

Hi @anthony-hull, can you clarify your solution please?

stitesExpensify avatar Jun 07 '21 22:06 stitesExpensify

I think there should be some way of the user requesting a new set password email link. So maybe replace the whole form with a request new link button?

Otherwise the user has no way of actioning the error message and they are stuck on the form unable to progress.

Or you could automatically send a new link when the API notices an expired set user token was used and the form could inform the user of the email and to check their mailbox

anthony-hull avatar Jun 08 '21 09:06 anthony-hull

It looks like the API now re-sends en email when you use an expired token. But I've been using the reset password UX rather than set password for the a new user for most of my testing.

anthony-hull avatar Jun 09 '21 12:06 anthony-hull

I think it makes sense to replace the form with a new link button in this case. Are you still interested in this @anthony-hull ?

stitesExpensify avatar Sep 27 '21 17:09 stitesExpensify

Bump @anthony-hull 😄

stitesExpensify avatar Oct 06 '21 19:10 stitesExpensify

I've just checked this flow and the API now just resends a new email if if gets a bad magic code. The button wouldn't be needed.

But informing the user that a new email has been sent would be an improvement I think. Also locking the form, or replacing it with the message would be a good idea. As trying again would just result in the same error and a second email being sent out

anthony-hull avatar Oct 07 '21 12:10 anthony-hull

Cool, I'm in favor of you making that solution as those seem like great improvements to me! If you want to update the OP I'll add the external label and we can get you working on it! We are still currently in a merge hold though so I'm not sure when it will get merged/paid out FYI

stitesExpensify avatar Oct 07 '21 18:10 stitesExpensify

ok :)

anthony-hull avatar Oct 11 '21 08:10 anthony-hull

@stitesExpensify Hey Brandon I've updated the body and title, let me know what you think

anthony-hull avatar Oct 12 '21 12:10 anthony-hull

Looks good! I updated the copy a little bit and we should be good to go

stitesExpensify avatar Oct 12 '21 17:10 stitesExpensify

I like the tweak. Does this need an external label now?

anthony-hull avatar Oct 14 '21 14:10 anthony-hull

Triggered auto assignment to @michaelhaxhiu (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Oct 19 '21 23:10 MelvinBot

@michaelhaxhiu can you create the upwork issue for this so that Anthony can get apply and get hired? :)

stitesExpensify avatar Oct 20 '21 23:10 stitesExpensify

Bump

stitesExpensify avatar Oct 21 '21 18:10 stitesExpensify

Messaged Hax on newDot to get this moving!

stitesExpensify avatar Oct 25 '21 22:10 stitesExpensify

Sorry for the delay folks, I was out of the office when this got assigned to me.

@anthony-hull can you apply for the job in Upwork here and let me know when that's done? https://www.upwork.com/jobs/~01ee9af3d9febfb893?

I've set the payment to $500 to account for you discovering + solving the issue.

michaelhaxhiu avatar Oct 26 '21 13:10 michaelhaxhiu