Add guardrail for disable 2fa

This commit is contained in:
7heMech committed 2026-02-14 06:28:59 +00:00
1 parent 011191f645
commit 1d14f72ba5
1 file changed
+3
+3
View File
@@ -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) {