mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-19 06:46:49 +01:00
Error on updating LDAP user's password. Salt was not been escaped.
This commit is contained in:
@@ -241,9 +241,9 @@ class SP_Users
|
||||
private static function makeUserPass($userPass)
|
||||
{
|
||||
$salt = SP_Crypt::makeHashSalt();
|
||||
$userPass = DB::escape(sha1($salt . DB::escape($userPass)));
|
||||
$userPass = sha1($salt . $userPass);
|
||||
|
||||
return array('salt' => $salt, 'pass' => $userPass);
|
||||
return array('salt' => DB::escape($salt), 'pass' => DB::escape($userPass));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user