From 9fa3752bfd81ece8db4f542411de066e789b9261 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Wed, 27 Apr 2011 12:47:26 +0200 Subject: password --- application/modules/user/controllers/PersonController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/modules/user/controllers/PersonController.php') 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 { -- cgit v1.2.3-55-g7522