[HOLD for payment 2022-02-08] Improve UX of Setting a password on account sign up with expired or malformed token
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:
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
Triggered auto assignment to @lschurr (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
This looks like it has been changed to something more useful in the backend:
Possibly still some call to action to resend a code for the user would be good?
Hm, when I tried to reproduce this, I got a privacy error:

I'm going to add the eng label to have someone else take a look.
Triggered auto assignment to @stitesExpensify (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Hi @anthony-hull, can you clarify your solution please?
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
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.
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 ?
Bump @anthony-hull 😄
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
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
ok :)
@stitesExpensify Hey Brandon I've updated the body and title, let me know what you think
Looks good! I updated the copy a little bit and we should be good to go
I like the tweak. Does this need an external label now?
Triggered auto assignment to @michaelhaxhiu (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
@michaelhaxhiu can you create the upwork issue for this so that Anthony can get apply and get hired? :)
Bump
Messaged Hax on newDot to get this moving!
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.