summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/modules/user/controllers/AuthController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/modules/user/controllers/AuthController.php b/application/modules/user/controllers/AuthController.php
index 9c6faa8..7fafa9d 100644
--- a/application/modules/user/controllers/AuthController.php
+++ b/application/modules/user/controllers/AuthController.php
@@ -107,8 +107,8 @@ class User_AuthController extends Zend_Controller_Action
$person->setSuspend(0);
$person->setRegisterdate($date->getTimestamp());
$person->setPasswordSalt(MD5($date->getTimestamp()));
- $person->setPassword(MD5($person->getPassword() . $person->getPasswordSalt()));
$person->setLoginPassword(crypt($person->getPassword(), '$6$'.randomString(8).'$'));
+ $person->setPassword(MD5($person->getPassword() . $person->getPasswordSalt()));
try {
$this->personmapper->save($person);
}catch(Zend_Exception $e)
@@ -180,8 +180,8 @@ class User_AuthController extends Zend_Controller_Action
$date = new DateTime();
$person->setPassword($_POST['password']);
$person->setPasswordSalt(MD5($date->getTimestamp()));
- $person->setPassword(MD5($person->getPassword() . $person->getPasswordSalt()));
$person->setLoginPassword(crypt($person->getPassword(), '$6$'.randomString(8).'$'));
+ $person->setPassword(MD5($person->getPassword() . $person->getPasswordSalt()));
try {
$this->personmapper->save($person);
} catch(Zend_Exception $e)