-
For issue 1: Will use phrase
enforceinstead ofenableFor issue 2: Keep OneDev server running, and exec into the container, and run
/opt/onedev/bin/reset-admin-password <new password>. This will reset admin password and clear 2FA status (but need to set up again) -
Previous Value Current Value Open
Closed
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Affected Versions |
OneDev 11.7.2 (docker)
|
| Labels |
No labels
|
Issue Votes (0)
The administrative option
check this to enable two-factor authentication for all users in the systemis ambiguous to me. I enabled it believing that it would allow users to enable 2FA for their accounts, not that it would force all users to enable 2FA or be unable to login.That in and of itself wasn't a big deal. The issue came when I enabled this option and was locked out of my account. Perhaps due to misconfiguration with a timeserver somewhere, 2FA codes weren't working at all. Oh well, not a big deal. Looks like you can just reset the admin password to disable 2FA... But upon trying, there's an error;
This means it was impossible for me to recover my account and I had to completely re-install OneDev. So this issue is two-fold;