system: remove FreeBSD 10 password workaround

This commit is contained in:
Franco Fichtner 2018-09-28 18:29:40 +02:00
parent 996923d464
commit 7e2f825bf9

View File

@ -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;
}
}