diff --git a/interface/web/login/index.php b/interface/web/login/index.php index c4643f4ed2f9f7c076df06a15106b40c1ba93cb8..e85faff8d4ad2d2aa461e2944a296e844f22b944 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'];