-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Add option for administrator to reset user 2FA #14243
Conversation
I don't think this removes U2F registrations, leaving 2FA in a rather inconsistent state where U2F tokens are registered but 2FA itself is disabled. |
@CirnoT this is the way it is done ... : gitea/routers/user/setting/security_twofa.go Lines 55 to 82 in 3d38ecb
for the admin pannel, this is just simplified as it dont need to be that verbose there (fail or sucess and move forward with other changes) |
I still really think U2F registrations should be removed when 2FA is disabled administratively. On the other hand, maybe they can be also used for other things later on. Won't block because of that. |
Codecov Report
@@ Coverage Diff @@
## master #14243 +/- ##
==========================================
- Coverage 41.97% 41.96% -0.01%
==========================================
Files 735 735
Lines 78933 78948 +15
==========================================
+ Hits 33130 33132 +2
- Misses 40347 40358 +11
- Partials 5456 5458 +2
Continue to review full report at Codecov.
|
🚀 |
by checking the "Reset 2FA" checkbox the 2fa is reset if exist ...