Fix 2FA becoming enabled when the user inputs the wrong code during setup#7972
Conversation
|
@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)
|
|
ping @harikrishna-patnala can you review this? |
harikrishna-patnala
left a comment
There was a problem hiding this comment.
agreed, code LGTM
|
reproduced the issue and verified the fix, it is looking good. Thanks @rohityadavcloud |
…etup (apache#7972) (cherry picked from commit ef74221) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
…etup (apache#7972) (cherry picked from commit ef74221) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>

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.