Open mallenexpensify opened 1 week ago
Job added to Upwork: https://www.upwork.com/jobs/~021861224421434105287
Current assignee @isabelastisser is eligible for the Bug assigner, not assigning anyone new.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @brunovjk (External
)
Edited by proposal-police: This proposal was edited at 2024-11-26 02:33:05 UTC.
Secondary login sends two magic codes for validation - causes login/rejection loop
addNewContactMethod
we are not setting the parameter validateCodeSent: true,
. Due to this hasMagicCodeBeenSent
becomes false and we again call sendValidateCode();
.
https://github.com/Expensify/App/blob/3f4e93ee40462b42f5fe331fdf9db5c9bbb1a421/src/components/ValidateCodeActionModal/index.tsx#L45-L52
validateCodeSent
value inside addNewContactMethod
and also update the pending field if required. We should also update in failure data validateCodeSent: null
.AddNewContactMethod
is called.I didn’t find Add secondary login
on NewDot. I can reproduce the issue using OldDot on prod, but I’m unsure if I can set up OldDot or hybrid in a dev now. @mallenexpensify, could you confirm if the issue is specifically for OldDot or impacts NewDot as well? Could you provide more details on the expectations here? Thank you :D
This is on OldDot / Expensify Classic.
@brunovjk is there a way to set up the OldDot in a dev environment? I went through the docs but couldn't find anything on that.
I asked on Slack for help https://expensify.slack.com/archives/C01GTK53T8Q/p1732758681575069
@isabelastisser, @brunovjk Whoops! This issue is 2 days overdue. Let's get this updated quick!
@brunovjk from the OG issue in E/E repo
Expensify Classic - not New Expensify
So.. I'm guessing this has to be Internal and, once a PR is raised, you'd review that PR (assuming it's accessible to you in the repo). Sound right?
@mallenexpensify, @brunovjk this issue is reproducible in dev environment:
https://github.com/user-attachments/assets/069e6e93-8abc-4abb-88c0-d51baf05947d
Thanks @ugogiordano, but I don't see how we could create and test proposals. We'll have to wait for san internal to take a look. But if you have any idea of the root cause and/or a solution, please don't hesitate to share :D
OG issue in E/E
Action Performed:
Log into account Add secondary login Enter Magic code for existing account to allow secondary email to be added Send magic code to verify secondary email
Expected Result:
Secondary email is sent a single magic code for verification
Actual Result:
Secondary email is sent a magic code for verification and then immediately sent an additional magic code seconds later.
In practice, this means that by the time the user has entered the first magic code, it has been invalidated with a new magic code. If they don't realise this and they click to verify again, that code invalidates the previous code, and this can keep going.
Workaround:
The user must wait until they get the second email, and then use only that code. But no one realises this. It explains why so many customers report that their code doesn't work when adding secondary login.
Platform:
Expensify Classic - not New Expensify
Internal only, do not post to External repos
N/A this came via setting up a customer training session with demo data.
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @brunovjk