regression: no visual feedback on 2FA prompt#40649
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
WalkthroughThreads an optional ChangesInvalid Two-Factor Attempt Error Handling
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
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 |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release-8.5.0 #40649 +/- ##
================================================
Coverage ? 69.97%
================================================
Files ? 3327
Lines ? 126590
Branches ? 22007
================================================
Hits ? 88577
Misses ? 34726
Partials ? 3287
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
ggazzo
left a comment
There was a problem hiding this comment.
It would be very interesting to know the root cause. I changed some things in the two-factor and SDK, and it would be good to know what kinds of changes actually broke the problem.
@ggazzo I added the root cause PR to the description |
…ler execution context and not displaying inline errors
Proposed changes (including videos or screenshots)
The bug consists of no visual feedback being given to the user when getting into the
Device managementpage from settings and introducing a wrong TOTP code. In order to re-add the 'Invalid password' or 'Invalid two factor code' notices to the user when the code/password is wrong, we have to rollback the use of theinvalidAttemptprop and pass it through the modal components. ThisinvalidAttemptprop passthrough that makes possible the visual feedback was removed in #37049Issue(s)
CORE-2210 [Regression] No visual feedback is provided when entering an incorrect TOTP code
Steps to test or reproduce
1- Setup a Rocket.Chat workspace with an EE.
2- Enable 2FA.
3- Go to Setting -> Device management. You will be prompted with a 2FA code.
4- Introduce a wrong code.
Expected: The dialog will show 'Invalid password' or 'Invalid two factor code' depending on the configured 2FA method.
Further comments
Introduced here #37049
Summary by CodeRabbit