diff options
Diffstat (limited to 'src/etc')
-rwxr-xr-x | src/etc/inc/auth.inc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index 56bcbc4..5b705a8 100755 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -608,9 +608,9 @@ function local_user_del($user) { function local_user_set_password(&$user, $password) { - $user['password'] = "REMOVED"; - $user['md5-hash'] = "REMOVED"; - $user['bcrypt-hash'] = password_hash($password,PASSWORD_BCRYPT); + unset($user['password']); + unset($user['md5-hash']); + $user['bcrypt-hash'] = password_hash($password, PASSWORD_BCRYPT); // Maintain compatibility with FreeBSD // https://reviews.freebsd.org/D2742 @@ -620,7 +620,6 @@ function local_user_set_password(&$user, $password) { $user['bcrypt-hash'][2] = "b"; } - // Converts ascii to unicode. $astr = (string) $password; $ustr = ''; |