Commit ba57a3be authored by Franco Fichtner's avatar Franco Fichtner

auth: remove naughty nt-hash

Reported by: @lattera
Reviewed by: @AdSchellevis
parent 51982379
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment