-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[$500] Log in - Unable to log in again after entering the incorrect magic code #28040
Comments
Job added to Upwork: https://www.upwork.com/jobs/~019165a8d87ce7d34b |
Triggered auto assignment to @sakluger ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @stephanieelliott ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav ( |
unable to reproduce on local |
Maybe try it on ANDORID/IOS (as showing in attached video here ) may help you reproduce it easier. I'm sure it will happen |
I think the problem is different The main problem I have identified is If we make 4 incorrect entries, then we will be able to enter on 5 So for me it's a backend problem. But from our side ProposalPlease re-state the problem that we are trying to solve in this issueAfter several unsuccessful attempts we cannot login even with the correct code What is the root cause of that problem?Theory(We have an unlimited number of attempts) What changes do you think we should make in order to solve the problem?To add a little clarity to the situation To do this we can add a failed attempts counter What alternative solutions did you explore? (Optional)NA |
Hi @ZhenjaHorbach can you please guide me how can I get the setup of Expensify app up and running? |
📣 @Bucephalus-lgtm! 📣
|
First clone the repository ) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Despite entering the CORRECT magic code, the user is UNABLE to log in What is the root cause of that problem?This is because any time we change a digit in the OTP input, we'll send the API call again. When it's called too many times (>5 attempts), we'll be blocked from entering more and have to request a new code. What changes do you think we should make in order to solve the problem?
Some options to consider: Once we decide on the UX, the change should be straight forward. What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.The user enter an incorrect magic code and then modify individual digits, the user unable to log in even when entering the correct code. What is the root cause of that problem?After an incorrect OTP attempt, if a user modifies individual digits without clearing out all fields, the length of the OTP value remains six. src/CONST.ts: MAGIC_CODE_LENGTH: 6,
src/components/MagicCodeInput.js: maxLength: CONST.MAGIC_CODE_LENGTH,
const validateAndSubmit = () => {
...
if (!props.shouldSubmitOnComplete || _.filter(numbers, (n) => ValidationUtils.isNumeric(n)).length !== props.maxLength || props.network.isOffline) {
return;
}
... This results in the system believing that a complete OTP has been entered, which in turn triggers the API call for validation. What changes do you think we should make in order to solve the problem?Clear the OTP fields upon a failed verification, so It forces users to re-enter the entire OTP. By clearing the code after a failed verification, the length of the OTP value gets reset. This ensures the condition for making an API call (all fields being filled) isn't met until all six fields are populated again. What alternative solutions did you explore? (Optional)NA |
📣 @albac! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Can be considered dupe of #28019 as the final solution arrived at that issue should also resolve this issue. |
Yes, it is a duplicate. @stephanieelliott |
Thanks for finding the dupe! Closing in favor of #28019. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
User should be able to login when using correct magic code.
Actual Result:
Despite entering the CORRECT magic code, the user is UNABLE to log in
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.73.0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
ANDROID-Unable-To-Login.mp4
Recording.4702.mp4
Expensify/Expensify Issue URL:
Issue reported by: @tranvantoan-qn
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695233198179649
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: