diff options
Diffstat (limited to 'application/modules/user/controllers/AuthController.php')
-rw-r--r-- | application/modules/user/controllers/AuthController.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/application/modules/user/controllers/AuthController.php b/application/modules/user/controllers/AuthController.php index 7ef56aa..8adea4c 100644 --- a/application/modules/user/controllers/AuthController.php +++ b/application/modules/user/controllers/AuthController.php @@ -53,16 +53,16 @@ class User_AuthController extends Zend_Controller_Action { $date = new DateTime(); $person->setLogindate($date->getTimestamp()); if($person->getSuspend()) { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('Your Account is suspended', 'error'); + + $this->view->notification = Pbs_Notifier::notify('Your Account is suspended', 'error'); } else { $this->personmapper->save($person); $this->_helper->redirector('selectmembership', 'person'); return; } } else { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('Wrong Email or Password', 'error'); + + $this->view->notification = Pbs_Notifier::notify('Wrong Email or Password', 'error'); } } } @@ -82,8 +82,8 @@ class User_AuthController extends Zend_Controller_Action { public function registerAction() { if (Zend_Auth::getInstance()->hasIdentity()) { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('Already logged in.', 'error'); + + $this->view->notification = Pbs_Notifier::notify('Already logged in.', 'error'); } else { if (!isset($_POST["register"])) { $registerForm = new user_Form_Register(); @@ -106,8 +106,8 @@ class User_AuthController extends Zend_Controller_Action { try { $this->personmapper->save($person); } catch(Zend_Exception $e) { - $pbsNotifier = new Pbs_Notifier(); - $this->view->notification = $pbsNotifier->notify('Email already registered', 'error'); + + $this->view->notification = Pbs_Notifier::notify('Email already registered', 'error'); $this->view->registerForm = $registerForm; return; } |