auth: remove naughty nt-hash

Reported by: @lattera
Reviewed by: @AdSchellevis
This commit is contained in:
Franco Fichtner 2015-08-25 16:40:31 +02:00
parent 0f4e0377d5
commit 2b17ad9077

View File

@ -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)