diff --git a/workflow/engine/methods/login/login.php b/workflow/engine/methods/login/login.php index 83aa96f16..59d380c07 100755 --- a/workflow/engine/methods/login/login.php +++ b/workflow/engine/methods/login/login.php @@ -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