winterhazel opened a new pull request, #7972:
URL: https://github.com/apache/cloudstack/pull/7972

   ### 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
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [X] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [ ] Minor
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [X] Minor
   - [ ] Trivial
   
   
   ### Screenshots (if appropriate):
   
   
   ### How Has This Been Tested?
   
   In a local lab:
   
   - In a user of the root admin account, I opened the 2FA setup, selected 
static PIN, provided the wrong PIN and verified that 2FA did not get enabled;
   - In a user of the root admin account, I opened the 2FA setup, selected 
static PIN, provided the correct PIN and verified that 2FA was enabled;
   - In a user of a non-admin account belonging to domain `test/test2`, I 
opened the 2FA setup, selected static PIN, provided the wrong PIN and verified 
that 2FA did not get enabled.
   - In a user of a non-admin account belonging to domain `test/test2`, I 
opened the 2FA setup, selected static PIN, provided the correct PIN and 
verified that 2FA was enabled.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to