BUG 000 Move the hook for the SSO to enable logout and change user
This commit is contained in:
@@ -75,6 +75,23 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Execute SSO trigger
|
||||
$pluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
if (defined('PM_SINGLE_SIGN_ON')) {
|
||||
if ($pluginRegistry->existsTrigger(PM_SINGLE_SIGN_ON)) {
|
||||
if ($pluginRegistry->executeTriggers(PM_SINGLE_SIGN_ON, null)) {
|
||||
// Start new session
|
||||
@session_destroy();
|
||||
session_start();
|
||||
session_regenerate_id();
|
||||
// Authenticate
|
||||
require_once 'authentication.php';
|
||||
die();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//end log
|
||||
|
||||
//start new session
|
||||
@@ -82,18 +99,6 @@
|
||||
session_start ();
|
||||
session_regenerate_id ();
|
||||
|
||||
// Execute SSO trigger - Start
|
||||
$pluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
if (defined('PM_SINGLE_SIGN_ON')) {
|
||||
if ($pluginRegistry->existsTrigger(PM_SINGLE_SIGN_ON)) {
|
||||
if ($pluginRegistry->executeTriggers(PM_SINGLE_SIGN_ON, null)) {
|
||||
require_once 'authentication.php';
|
||||
die();
|
||||
}
|
||||
}
|
||||
}
|
||||
// Execute SSO trigger - End
|
||||
|
||||
if (strlen ( $msg ) > 0) {
|
||||
$_SESSION ['G_MESSAGE'] = $msg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user