app/controllers/UserController.php: in settingsAction() use Phalcon\Security::hash() instead of password_hash()
This commit is contained in:
parent
31ac9224b3
commit
2cccbf2f98
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ class UserController extends ControllerBase
|
|||
$new_pw = $form->getValue('passwordNew');
|
||||
if (strlen($new_pw) > 0) {
|
||||
|
||||
$hash = password_hash($new_pw, PASSWORD_BCRYPT);
|
||||
$hash = $this->security->hash($new_pw, 12);
|
||||
|
||||
// User had a password before. just update.
|
||||
if (strlen($user->getPassword()) > 0) {
|
||||
|
|
|
|||
Reference in a new issue