Fix SAML user redirection issue
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user