-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: input in confirm passcode not getting reset #6687
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
Conversation
WalkthroughFixes a state setter typo and updates the first-step behavior to clear the choose screen ref instead of the confirm screen ref in PasscodeChoose.tsx. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as User
participant PC as PasscodeChoose
participant CH as chooseRef
participant CF as confirmRef
U->>PC: Enter passcode (first step)
PC->>PC: setPreviousPasscode(p)
Note right of PC: Store first entry for confirmation
PC->>CH: clearPasscode()
Note over CH,PC: Choose screen is reset for next input
U->>PC: Enter passcode (confirm step)
PC->>PC: Compare with previous
alt match
PC-->>U: Proceed
else mismatch
PC->>CH: clearPasscode()
PC-->>U: Prompt retry
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
iOS Build Available Rocket.Chat Experimental 4.65.0.107462 |
Android Build Available Rocket.Chat Experimental 4.65.0.107461 Internal App Sharing: https://play.google.com/apps/test/RQVpXLytHNc/ahAO29uNSEn9luRZflwl-Cxlg3p9AE20MmKd9r2QsHDV_15tpnouPuIRlrYq2WMLpWm3pBTXcCLd2YEHZVJs7Cjjdf |
0d0c594
to
3203886
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a regression or the bug was always there?
What's the behavior?
I'm missing CI jobs passing.
Seems like a bug, so when we try to set a new screen lock and enter the password first time, in the confirm screen the password is prefilled and to continue we have to clear the password and enter it again to confirm |
Proposed changes
Issue(s)
How to test or reproduce
Screenshots
Types of changes
Checklist
Further comments
Summary by CodeRabbit