diff --git a/src/etc/inc/auth.inc b/src/etc/inc/auth.inc index 4c9bb3e4d..ba2e39f3c 100644 --- a/src/etc/inc/auth.inc +++ b/src/etc/inc/auth.inc @@ -489,7 +489,7 @@ function local_user_del($user) local_group_del_user($user); } -function local_user_set_password(& $user, $password) +function local_user_set_password(&$user, $password) { $user['password'] = crypt($password, '$6$'); @@ -500,9 +500,6 @@ function local_user_set_password(& $user, $password) $a = ord($astr{$i}) << 8; $ustr.= sprintf("%X", $a); } - - // Generate the NT-HASH from the unicode string - $user['nt-hash'] = bin2hex(hash("md4", $ustr)); } function local_user_get_groups($user, $all = false)