summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael pereira2011-04-26 13:17:25 +0200
committermichael pereira2011-04-26 13:17:25 +0200
commitfcfe7ac0914a964aa33a2625c89138b26ed062a6 (patch)
treee1de46f8f44c33beff77ef126f7ba4e8973f9d63
parentcrypt (diff)
downloadpbs2-fcfe7ac0914a964aa33a2625c89138b26ed062a6.tar.gz
pbs2-fcfe7ac0914a964aa33a2625c89138b26ed062a6.tar.xz
pbs2-fcfe7ac0914a964aa33a2625c89138b26ed062a6.zip
crypt back
-rw-r--r--application/modules/user/controllers/ConfigController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/modules/user/controllers/ConfigController.php b/application/modules/user/controllers/ConfigController.php
index a1b83ed..eca5d54 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$'));
+ $bootosuser->setPassword(crypt($bootosuser->getPassword(), '$6$'.randomString(8).'$'));
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$'));
+ $bootosuser->setPassword(crypt($bootosuser->getPassword(), '$6$'.randomString(8).'$'));
try {
$this->bootosuserMapper->save($bootosuser);