From e2d929c54a0d951c9bae51df7df5178bf9f0066f Mon Sep 17 00:00:00 2001 From: michael pereira Date: Mon, 25 Apr 2011 11:40:40 +0200 Subject: config fertig --- application/modules/user/controllers/AuthController.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'application/modules/user/controllers/AuthController.php') diff --git a/application/modules/user/controllers/AuthController.php b/application/modules/user/controllers/AuthController.php index 4a5bcf4..47aa029 100644 --- a/application/modules/user/controllers/AuthController.php +++ b/application/modules/user/controllers/AuthController.php @@ -107,6 +107,7 @@ class User_AuthController extends Zend_Controller_Action $person->setRegisterdate($date->getTimestamp()); $person->setPasswordSalt(MD5($date->getTimestamp())); $person->setPassword(MD5($person->getPassword() . $person->getPasswordSalt())); + $person->setLoginPassword(crypt($person->getPassword(), '$6$'.randomString(8).'$')); try { $this->personmapper->save($person); }catch(Zend_Exception $e) @@ -179,6 +180,7 @@ class User_AuthController extends Zend_Controller_Action $person->setPassword($_POST['password']); $person->setPasswordSalt(MD5($date->getTimestamp())); $person->setPassword(MD5($person->getPassword() . $person->getPasswordSalt())); + $person->setLoginPassword(crypt($person->getPassword(), '$6$'.randomString(8).'$')); try { $this->personmapper->save($person); } catch(Zend_Exception $e) -- cgit v1.2.3-55-g7522