From 87428a38677896e66d481af189df2eca53befda3 Mon Sep 17 00:00:00 2001 From: michael pereira Date: Tue, 26 Apr 2011 20:22:56 +0200 Subject: passwort --- application/modules/user/controllers/AuthController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'application/modules/user/controllers') 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) -- cgit v1.2.3-55-g7522