mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-02-18 08:32:57 +00:00
Merge pull request #5303 from 7heMech/fix-2fa-logout
Add guardrail to fix disabling 2fa
This commit is contained in:
@@ -163,6 +163,9 @@ const internal2fa = {
|
|||||||
const result = await verify({
|
const result = await verify({
|
||||||
token: code,
|
token: code,
|
||||||
secret: auth.meta.totp_secret,
|
secret: auth.meta.totp_secret,
|
||||||
|
guardrails: createGuardrails({
|
||||||
|
MIN_SECRET_BYTES: 10,
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!result.valid) {
|
if (!result.valid) {
|
||||||
|
|||||||
Reference in New Issue
Block a user