mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-12-03 19:01:23 +01:00
Merge pull request #5303 from 7heMech/fix-2fa-logout
Add guardrail to fix disabling 2fa
This commit is contained in:
1 file changed
+3
@@ -163,6 +163,9 @@ const internal2fa = {
|
||||
const result = await verify({
|
||||
token: code,
|
||||
secret: auth.meta.totp_secret,
|
||||
guardrails: createGuardrails({
|
||||
MIN_SECRET_BYTES: 10,
|
||||
}),
|
||||
});
|
||||
|
||||
if (!result.valid) {
|
||||
|
||||
Reference in new issue
Block a user