diff options
Diffstat (limited to 'application/modules/user/controllers/AuthController.php')
| -rw-r--r-- | application/modules/user/controllers/AuthController.php | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
