Improvement Plugin EnhancedLogin
- A validation was added validation for login.
This commit is contained in:
@@ -311,16 +311,11 @@ try {
|
|||||||
$oHeadPublisher->addExtJsScript('login/init', false); //adding a javascript file .js
|
$oHeadPublisher->addExtJsScript('login/init', false); //adding a javascript file .js
|
||||||
$oHeadPublisher->assign('uriReq', $sLocation);
|
$oHeadPublisher->assign('uriReq', $sLocation);
|
||||||
|
|
||||||
$sFilename = PATH_PLUGINS . 'pmEnhancedLogin.php' ;
|
$oPluginRegistry =& PMPluginRegistry::getSingleton();
|
||||||
|
if ($oPluginRegistry->existsTrigger ( PM_AFTER_LOGIN )) {
|
||||||
if (file_exists($sFilename)) {
|
$oPluginRegistry->executeTriggers ( PM_AFTER_LOGIN , $_SESSION['USER_LOGGED'] );
|
||||||
require_once $sFilename;
|
|
||||||
|
|
||||||
if (class_exists( 'pmEnhancedLoginplugin' )) {
|
|
||||||
$oPlugin = new pmEnhancedLoginplugin( 'pmEnhancedLogin', $sFilename );
|
|
||||||
$oPlugin->authenticationandcontrolWS();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
G::RenderPage('publish', 'extJs');
|
G::RenderPage('publish', 'extJs');
|
||||||
//G::header('Location: ' . $sLocation);
|
//G::header('Location: ' . $sLocation);
|
||||||
die;
|
die;
|
||||||
|
|||||||
Reference in New Issue
Block a user