BUG 000 Move the hook for the SSO to enable logout and change user

This commit is contained in:
Julio Cesar Laura
2011-08-29 10:41:23 -04:00
parent b8670beaaf
commit 5b0da08227

View File

@@ -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;
}