diff --git a/application/modules/opac/controllers/AuthController.php b/application/modules/opac/controllers/AuthController.php index d4efa1eee663503a6b34d01c98f4d55b41c0e4d0..71b5249df3fa485e5d9eaf718a01db2ad7ba68c2 100644 --- a/application/modules/opac/controllers/AuthController.php +++ b/application/modules/opac/controllers/AuthController.php @@ -111,8 +111,8 @@ class AuthController extends ZendAfi_Controller_Action { $strategy = Auth_Strategy_Abstract::strategyForController($this); $strategy->setDefaultUrl($redirect); $strategy->onLoginSuccess(function($user) { - $user->registerNotificationsOn($this->getHelper('notify')->bePopup()); - }); + $user->registerNotificationsOn($this->getHelper('notify')->bePopup()); + }); $strategy->processLogin(); $this->view->form_action = 'login'; } @@ -127,9 +127,9 @@ class AuthController extends ZendAfi_Controller_Action { $strategy = Auth_Strategy_Abstract::strategyForController($this); $strategy->disableRedirect(); $strategy->onLoginSuccess(function($user) use ($redirect, $location) { - $user->registerNotificationsOn($this->getHelper('notify')); - $this->renderPopup($redirect, $location); - }); + $user->registerNotificationsOn($this->getHelper('notify')); + $this->renderPopup($redirect, $location); + }); $strategy->processLogin(); if (!Class_Users::hasIdentity()) { @@ -197,8 +197,8 @@ class AuthController extends ZendAfi_Controller_Action { $strategy = Auth_Strategy_Abstract::strategyForController($this); $strategy->setDefaultUrl($url); $strategy->onLoginSuccess(function($user) { - $user->registerNotificationsOn($this->getHelper('notify')->bePopup()); - }); + $user->registerNotificationsOn($this->getHelper('notify')->bePopup()); + }); $strategy->processLogin(); } @@ -446,8 +446,6 @@ class AuthController extends ZendAfi_Controller_Action { } - - protected function _preRegistrationFailed($message) { $this->_helper->notify($message); $this->_preRegistrationRedirect('pre-registration');