mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 18:44:44 +00:00
auth: remove naughty nt-hash
Reported by: @lattera Reviewed by: @AdSchellevis
This commit is contained in:
parent
0f4e0377d5
commit
2b17ad9077
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user