PM-1124: I added validation when the feature is active

This commit is contained in:
Paula V. Quispe
2015-06-16 17:14:03 -04:00
parent 59fe78114a
commit b0e26bf8c3

View File

@@ -103,22 +103,23 @@ if (isset ($_SESSION['USER_LOGGED'])) {
// Execute SSO trigger
$pluginRegistry =& PMPluginRegistry::getSingleton();
if (defined('PM_SINGLE_SIGN_ON')) {
//Check in SSO class
G::LoadClass("sso");
$oSso = new ssoClass();
$res = $oSso->ssocVerifyUser();
if($res){
// Start new session
@session_destroy();
session_start();
session_regenerate_id();
// Authenticate
require_once 'authentication.php';
die();
$licensedFeatures = & PMLicensedFeatures::getSingleton();
if ($licensedFeatures->verifyfeature('7TTeDBQeWRoZTZKYjh4eFpYUlRDUUEyVERPU3FxellWank=')) {
//Check in SSO class
G::LoadClass("sso");
$oSso = new ssoClass();
$res = $oSso->ssocVerifyUser();
if($res){
// Start new session
@session_destroy();
session_start();
session_regenerate_id();
// Authenticate
require_once 'authentication.php';
die();
}
//Check in SSO class
}
//Check in SSO class
if ($pluginRegistry->existsTrigger(PM_SINGLE_SIGN_ON)) {
if ($pluginRegistry->executeTriggers(PM_SINGLE_SIGN_ON, null)) {
// Start new session