Skip to content

Commit 4eb596d

Browse files
Jenshelmo
authored andcommitted
Fix mailuser login, closes #6380
1 parent 51f507e commit 4eb596d

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
@@ -140,7 +140,7 @@ function process_login_request(app $app, &$error, $conf, $module)
140140
} else {
141141

142142
//* Do 2FA authentication
143-
if($user['otp_type'] != 'none') {
143+
if(isset($user['otp_type']) && $user['otp_type'] != 'none') {
144144

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

0 commit comments

Comments
 (0)