mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-12-04 11:21:22 +01:00
Add guardrail for disable 2fa
This commit is contained in:
1 parent
011191f645
commit
1d14f72ba5
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