Open scottsignal opened 4 months ago
There is a similar issue fixed with the PR https://github.com/apache/cloudstack/pull/7972 this is fixed in 4.18.2 version
and I've tested it with both 4.19.01 and 4.19.1 environment and it is working fine
May I know which version of CS environment you are testing ? if it is prior 4.18.2 version then you can upgrade your environment and test it again please.
I am reproducing this on 4.19.0.1. This was a fresh install on 4.19 that was upgraded to 4.19.0.1. We have another environment I will try and reproduce it there.
So I managed to reproduce this once and then never again in the other instance. I will keep looking at this, however, I would like to back up to how I discovered this in the first place. I can reproduce another test case in both instances that may help. In your test case above replace step number six after clicking the setup button and accidentally press the back button or exit your browser. I can reproduce every time this way.
@scottsignal agreed to your point that clicking on back button is considering as the verification is already done. We need to fix this in UI.
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
N/A
OS / ENVIRONMENT
Ubuntu 22.04 Single-node Management Server MySQL 5.7
SUMMARY
2FA is enabled on a user even if user fails to verify TOTP auth code to enable
STEPS TO REPRODUCE
Create a user that is set to enable in 2FA upon login Choose either Google Authenticator or Other TOTP and click Setup Enter the wrong Token on accident and you are kicked back to login. Try logging in again and you are presented with a 2FA screen, however, you were never successfully enrolled so TOTP codes do not work.
EXPECTED RESULTS
ACTUAL RESULTS