From 7e2f825bf9bbecebba2b371b254ff1935b29f106 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 28 Sep 2018 18:29:40 +0200 Subject: [PATCH] system: remove FreeBSD 10 password workaround --- src/etc/inc/auth.inc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index 662c3903d..ca8f4daf7 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -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; } }