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
|
// Execute SSO trigger
|
||||||
$pluginRegistry =& PMPluginRegistry::getSingleton();
|
$pluginRegistry =& PMPluginRegistry::getSingleton();
|
||||||
if (defined('PM_SINGLE_SIGN_ON')) {
|
if (defined('PM_SINGLE_SIGN_ON')) {
|
||||||
|
$licensedFeatures = & PMLicensedFeatures::getSingleton();
|
||||||
|
if ($licensedFeatures->verifyfeature('7TTeDBQeWRoZTZKYjh4eFpYUlRDUUEyVERPU3FxellWank=')) {
|
||||||
//Check in SSO class
|
//Check in SSO class
|
||||||
G::LoadClass("sso");
|
G::LoadClass("sso");
|
||||||
$oSso = new ssoClass();
|
$oSso = new ssoClass();
|
||||||
@@ -112,13 +114,12 @@ if (isset ($_SESSION['USER_LOGGED'])) {
|
|||||||
@session_destroy();
|
@session_destroy();
|
||||||
session_start();
|
session_start();
|
||||||
session_regenerate_id();
|
session_regenerate_id();
|
||||||
|
|
||||||
// Authenticate
|
// Authenticate
|
||||||
require_once 'authentication.php';
|
require_once 'authentication.php';
|
||||||
|
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
//Check in SSO class
|
//Check in SSO class
|
||||||
|
}
|
||||||
if ($pluginRegistry->existsTrigger(PM_SINGLE_SIGN_ON)) {
|
if ($pluginRegistry->existsTrigger(PM_SINGLE_SIGN_ON)) {
|
||||||
if ($pluginRegistry->executeTriggers(PM_SINGLE_SIGN_ON, null)) {
|
if ($pluginRegistry->executeTriggers(PM_SINGLE_SIGN_ON, null)) {
|
||||||
// Start new session
|
// Start new session
|
||||||
|
|||||||
Reference in New Issue
Block a user