summaryrefslogtreecommitdiffstats
path: root/application/modules/user/controllers
diff options
context:
space:
mode:
authormichael pereira2011-04-27 12:47:26 +0200
committermichael pereira2011-04-27 12:47:26 +0200
commit9fa3752bfd81ece8db4f542411de066e789b9261 (patch)
tree5c86ae3418d5347ded88861343671fe25048c2dc /application/modules/user/controllers
parentautologin (diff)
downloadpbs2-9fa3752bfd81ece8db4f542411de066e789b9261.tar.gz
pbs2-9fa3752bfd81ece8db4f542411de066e789b9261.tar.xz
pbs2-9fa3752bfd81ece8db4f542411de066e789b9261.zip
password
Diffstat (limited to 'application/modules/user/controllers')
-rw-r--r--application/modules/user/controllers/PersonController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/modules/user/controllers/PersonController.php b/application/modules/user/controllers/PersonController.php
index 5e01049..168add9 100644
--- a/application/modules/user/controllers/PersonController.php
+++ b/application/modules/user/controllers/PersonController.php
@@ -211,7 +211,7 @@ class user_PersonController extends Zend_Controller_Action
if($_POST['newpassword'] != '') {
$this->person->setPassword($_POST['newpassword']);
$this->person->setPasswordSalt(MD5(microtime(true)));
- $this->person->setLoginPassword(crypt($person->getPassword(), '$6$'.randomString(8).'$'));
+ $this->person->setLoginPassword(crypt($this->person->getPassword(), '$6$'.randomString(8).'$'));
$this->person->setPassword(MD5($this->person->getPassword() . $this->person->getPasswordSalt()));
}
try {