Skip to content

Commit 7a1aec5

Browse files
committed
Fix indent
1 parent d3c1500 commit 7a1aec5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

interface/web/login/otp.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@
9393

9494
//* Check if we reached limits
9595
if($_SESSION['otp']['sent'] > $max_code_resend
96-
|| $_SESSION['otp']['session_attempts'] > $max_session_code_retry
97-
|| $user['otp_attempts'] > $max_global_code_retry
98-
|| time() > $_SESSION['otp']['starttime'] + $max_time) {
96+
|| $_SESSION['otp']['session_attempts'] > $max_session_code_retry
97+
|| $user['otp_attempts'] > $max_global_code_retry
98+
|| time() > $_SESSION['otp']['starttime'] + $max_time
99+
) {
99100
unset($_SESSION['otp']);
100101
unset($_SESSION['s_pending']);
101102
$app->error('2FA failed','index.php');
@@ -107,7 +108,7 @@
107108
unset($_SESSION['s_pending']);
108109
unset($_SESSION['otp']);
109110
header('Location: ../index.php');
110-
die();
111+
die();
111112
} else {
112113
//* 2fa wrong code
113114
$_SESSION['otp']['session_attempts']++; // FIXME can't we skip this and rely on the DB only?

0 commit comments

Comments
 (0)