mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
system: remove FreeBSD 10 password workaround
This commit is contained in:
parent
996923d464
commit
7e2f825bf9
@ -557,11 +557,6 @@ function local_user_set_password(&$user, $password = null)
|
||||
|
||||
$hash = password_hash($password, PASSWORD_BCRYPT, [ 'cost' => $cost ]);
|
||||
if ($hash !== false) {
|
||||
/*
|
||||
* $2y$ returned is supported in FreeBSD 11.0 and up,
|
||||
* but we started with FreeBSD 10.3 so need to fix:
|
||||
*/
|
||||
$hash[2] = 'b';
|
||||
$user['password'] = $hash;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user