regression: no visual feedback on 2FA prompt#40649
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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.63%
================================================
Files ? 3338
Lines ? 123259
Branches ? 21993
================================================
Hits ? 85829
Misses ? 34061
Partials ? 3369
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.
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.Issue(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