diff options
| author | michael pereira | 2011-04-26 13:15:38 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-26 13:15:38 +0200 |
| commit | dccf01a783638c8dd7881ce3408a1197e1988878 (patch) | |
| tree | 7544d59f8887a8bb9a5fcc63196bc1aa10847ac1 /application/modules/user/controllers/ConfigController.php | |
| parent | config fix (diff) | |
| download | pbs2-dccf01a783638c8dd7881ce3408a1197e1988878.tar.gz pbs2-dccf01a783638c8dd7881ce3408a1197e1988878.tar.xz pbs2-dccf01a783638c8dd7881ce3408a1197e1988878.zip | |
crypt
Diffstat (limited to 'application/modules/user/controllers/ConfigController.php')
| -rw-r--r-- | application/modules/user/controllers/ConfigController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/modules/user/controllers/ConfigController.php b/application/modules/user/controllers/ConfigController.php index eca5d54..a1b83ed 100644 --- a/application/modules/user/controllers/ConfigController.php +++ b/application/modules/user/controllers/ConfigController.php @@ -286,7 +286,7 @@ class user_ConfigController extends Zend_Controller_Action $bootosuser->setConfigID($configID); $bootosuser->setHomepath(str_replace("%login-name%", $bootosuser->getLogin(), $bootosuser->getHomepath())); if($bootosuser->getPassword() != '%password%') - $bootosuser->setPassword(crypt($bootosuser->getPassword(), '$6$'.randomString(8).'$')); + $bootosuser->setPassword(crypt($bootosuser->getPassword(), '$6$')); try { $this->bootosuserMapper->save($bootosuser); @@ -365,7 +365,7 @@ class user_ConfigController extends Zend_Controller_Action $bootosuser->setConfigID($configID); $bootosuser->setHomepath(str_replace("%login-name%", $bootosuser->getLogin(), $bootosuser->getHomepath())); if($bootosuser->getPassword() != '%password%') - $bootosuser->setPassword(crypt($bootosuser->getPassword(), '$6$'.randomString(8).'$')); + $bootosuser->setPassword(crypt($bootosuser->getPassword(), '$6$')); try { $this->bootosuserMapper->save($bootosuser); |
