-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix 2FA becoming enabled when the user inputs the wrong code during setup #7972
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
Codecov Report
@@ Coverage Diff @@
## 4.18 #7972 +/- ##
=========================================
Coverage 13.06% 13.06%
Complexity 9102 9102
=========================================
Files 2720 2720
Lines 257469 257469
Branches 40146 40146
=========================================
Hits 33638 33638
Misses 219605 219605
Partials 4226 4226
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@blueorangutan package |
|
@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7059 |
|
@blueorangutan test |
|
@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-7691)
|
shwstppr
left a comment
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.
Code LGTM
|
ping @harikrishna-patnala can you review this? |
harikrishna-patnala
left a comment
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.
agreed, code LGTM
|
reproduced the issue and verified the fix, it is looking good. Thanks @rohityadavcloud |
|
Thanks for the fix, @winterhazel. |
…etup (apache#7972) (cherry picked from commit ef74221) Signed-off-by: Rohit Yadav <[email protected]>
…etup (apache#7972) (cherry picked from commit ef74221) Signed-off-by: Rohit Yadav <[email protected]>
Description
During the 2FA setup, the user must input a code in order to verify the configuration. If the user inserts the wrong code, an error message is shown; however, 2FA still gets enabled.
This PR fixes this behavior and prevents 2FA from becoming enabled if the user inserts the wrong code.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
In a local lab:
test/test2, I opened the 2FA setup, selected static PIN, provided the wrong PIN and verified that 2FA did not get enabled.test/test2, I opened the 2FA setup, selected static PIN, provided the correct PIN and verified that 2FA was enabled.