PM-1124: I added validation when the feature is active
This commit is contained in:
@@ -103,6 +103,8 @@ if (isset ($_SESSION['USER_LOGGED'])) {
|
||||
// Execute SSO trigger
|
||||
$pluginRegistry =& PMPluginRegistry::getSingleton();
|
||||
if (defined('PM_SINGLE_SIGN_ON')) {
|
||||
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
||||
if ($licensedFeatures->verifyfeature('7TTeDBQeWRoZTZKYjh4eFpYUlRDUUEyVERPU3FxellWank=')) {
|
||||
//Check in SSO class
|
||||
G::LoadClass("sso");
|
||||
$oSso = new ssoClass();
|
||||
@@ -112,13 +114,12 @@ if (isset ($_SESSION['USER_LOGGED'])) {
|
||||
@session_destroy();
|
||||
session_start();
|
||||
session_regenerate_id();
|
||||
|
||||
// Authenticate
|
||||
require_once 'authentication.php';
|
||||
|
||||
die();
|
||||
}
|
||||
//Check in SSO class
|
||||
}
|
||||
if ($pluginRegistry->existsTrigger(PM_SINGLE_SIGN_ON)) {
|
||||
if ($pluginRegistry->executeTriggers(PM_SINGLE_SIGN_ON, null)) {
|
||||
// Start new session
|
||||
|
||||
Reference in New Issue
Block a user