Skip to content

Commit c97ae7f

Browse files
committed
Explicit check, the verifying state should not trigger here.
1 parent 0a84384 commit c97ae7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/login/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function process_login_request(app $app, &$error, $conf, $module)
138138
} else {
139139

140140
//* Do 2FA authentication
141-
if($user['otp_enabled'] != 'n') {
141+
if($user['otp_enabled'] == 'y') {
142142

143143
//* Save session in pending state and destroy original session
144144
$_SESSION['s_pending'] = $_SESSION['s'];

0 commit comments

Comments
 (0)