Fix SAML user redirection issue

This commit is contained in:
Thilina
2021-06-27 17:36:31 +02:00
parent b4bec17934
commit f1d4b3915e

View File

@@ -69,9 +69,9 @@ if (empty($user) || empty($user->email)) {
$suser->Load("email = ?", array($ssoUserEmail)); $suser->Load("email = ?", array($ssoUserEmail));
} }
LogManager::getInstance()->info('SSO SAML User:'.print_r($suser, true)); LogManager::getInstance()->info('SSO SAML User:'.print_r($suser->email, true));
if (empty($suser)) { if (empty($suser) || empty($suser->id)) {
header("Location:" . CLIENT_BASE_URL . "login.php?f=1"); header("Location:" . CLIENT_BASE_URL . "logout.php");
exit(); exit();
} }
$ssoUserLoaded = true; $ssoUserLoaded = true;