diff options
| author | Simon | 2011-04-13 16:09:18 +0200 |
|---|---|---|
| committer | Simon | 2011-04-13 16:09:18 +0200 |
| commit | ee066778597d6361ba8ab9e1b1ba31b47492eb31 (patch) | |
| tree | 4ff4146c4bc3ff502e755ae6a56e262fc3b8a1d5 /application/modules/user/controllers/AuthController.php | |
| parent | neue Rechte hinzugefügt & Teil 3 (diff) | |
| parent | Gültigkeit einer E-Mail Adresseüberprüfen (diff) | |
| download | pbs2-ee066778597d6361ba8ab9e1b1ba31b47492eb31.tar.gz pbs2-ee066778597d6361ba8ab9e1b1ba31b47492eb31.tar.xz pbs2-ee066778597d6361ba8ab9e1b1ba31b47492eb31.zip | |
merge
Diffstat (limited to 'application/modules/user/controllers/AuthController.php')
| -rw-r--r-- | application/modules/user/controllers/AuthController.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/application/modules/user/controllers/AuthController.php b/application/modules/user/controllers/AuthController.php index d1596ae..a90c8db 100644 --- a/application/modules/user/controllers/AuthController.php +++ b/application/modules/user/controllers/AuthController.php @@ -52,9 +52,14 @@ class User_AuthController extends Zend_Controller_Action $person->setID($result[0]['personID']); $date = new DateTime(); $person->setLogindate($date->getTimestamp()); - $this->personmapper->save($person); - $this->_helper->redirector('selectmembership', 'person'); - return; + if($person->getSuspended()) { + $pbsNotifier = new Pbs_Notifier(); + $this->view->notification = $pbsNotifier->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'); @@ -95,6 +100,7 @@ class User_AuthController extends Zend_Controller_Action $person = new Application_Model_Person($_POST); $this->personmapper = new Application_Model_PersonMapper(); $date = new DateTime(); + $person->setSuspended(0); $person->setRegisterdate($date->getTimestamp()); $person->setPasswordSalt(MD5($date->getTimestamp())); $person->setPassword(MD5($person->getPassword() . $person->getPasswordSalt())); |
