setting rate limiting higher
Deploy / deploy (push) Successful in 37s

This commit is contained in:
2026-05-06 09:43:10 +02:00
parent a6968d7f71
commit 5e0b8a2fe8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ if($data->enable_2fa==true){
exit();
}
check_rate_limit($conn, 'setup_2fa', 5, 10 * 60, (string)$id);
check_rate_limit($conn, 'setup_2fa', 5, 60, (string)$id);
$twofa_secret = $_SESSION["pending_2fa_secret"] ?? "";
if ($twofa_secret === "" || !hash_equals(generateTOTP($twofa_secret), $twofa_pin)) {
echo json_encode(['success' => false, 'message' => 'Invalid 2FA code.']);