From 4eb596df43ac933d979d4151cbb04ea40b5cdfa7 Mon Sep 17 00:00:00 2001 From: Jens Date: Fri, 26 Aug 2022 07:24:01 +0200 Subject: [PATCH] Fix mailuser login, closes #6380 --- interface/web/login/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/web/login/index.php b/interface/web/login/index.php index c4643f4ed2..e85faff8d4 100644 --- a/interface/web/login/index.php +++ b/interface/web/login/index.php @@ -140,7 +140,7 @@ function process_login_request(app $app, &$error, $conf, $module) } else { //* Do 2FA authentication - if($user['otp_type'] != 'none') { + if(isset($user['otp_type']) && $user['otp_type'] != 'none') { //* Save session in pending state and destroy original session $_SESSION['s_pending'] = $_SESSION['s']; -- GitLab