mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
disable password autocomplete and fix password not hashed on update
This commit is contained in:
parent
17d91873d4
commit
7a20cbb286
4 changed files with 4 additions and 4 deletions
|
@ -390,7 +390,7 @@ class User extends \descartes\Controller
|
|||
|
||||
if ($password)
|
||||
{
|
||||
$updated_user['password'] = $password;
|
||||
$updated_user['password'] = password_hash($password, PASSWORD_DEFAULT);
|
||||
}
|
||||
|
||||
$success = $this->internal_user->update($id_user, $updated_user, $quota);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue