From 16b66055e45903d0c3b39de306c6366fb548aaa4 Mon Sep 17 00:00:00 2001 From: Marco Antonio Nina Date: Wed, 23 Jul 2014 12:12:50 -0400 Subject: [PATCH] Improvement Plugin EnhancedLogin - A validation was added validation for login. --- workflow/engine/methods/login/authentication.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/workflow/engine/methods/login/authentication.php b/workflow/engine/methods/login/authentication.php index 8dd5a21bc..64278e30b 100755 --- a/workflow/engine/methods/login/authentication.php +++ b/workflow/engine/methods/login/authentication.php @@ -311,16 +311,11 @@ try { $oHeadPublisher->addExtJsScript('login/init', false); //adding a javascript file .js $oHeadPublisher->assign('uriReq', $sLocation); - $sFilename = PATH_PLUGINS . 'pmEnhancedLogin.php' ; - - if (file_exists($sFilename)) { - require_once $sFilename; - - if (class_exists( 'pmEnhancedLoginplugin' )) { - $oPlugin = new pmEnhancedLoginplugin( 'pmEnhancedLogin', $sFilename ); - $oPlugin->authenticationandcontrolWS(); - } + $oPluginRegistry =& PMPluginRegistry::getSingleton(); + if ($oPluginRegistry->existsTrigger ( PM_AFTER_LOGIN )) { + $oPluginRegistry->executeTriggers ( PM_AFTER_LOGIN , $_SESSION['USER_LOGGED'] ); } + G::RenderPage('publish', 'extJs'); //G::header('Location: ' . $sLocation); die;