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 // Execute SSO trigger
$pluginRegistry =& PMPluginRegistry::getSingleton(); $pluginRegistry =& PMPluginRegistry::getSingleton();
if (defined('PM_SINGLE_SIGN_ON')) { if (defined('PM_SINGLE_SIGN_ON')) {
//Check in SSO class $licensedFeatures = & PMLicensedFeatures::getSingleton();
G::LoadClass("sso"); if ($licensedFeatures->verifyfeature('7TTeDBQeWRoZTZKYjh4eFpYUlRDUUEyVERPU3FxellWank=')) {
$oSso = new ssoClass(); //Check in SSO class
$res = $oSso->ssocVerifyUser(); G::LoadClass("sso");
if($res){ $oSso = new ssoClass();
// Start new session $res = $oSso->ssocVerifyUser();
@session_destroy(); if($res){
session_start(); // Start new session
session_regenerate_id(); @session_destroy();
session_start();
// Authenticate session_regenerate_id();
require_once 'authentication.php'; // Authenticate
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