Fix error on updating LDAP user password on database

This commit is contained in:
nuxsmin
2013-11-06 01:50:29 +01:00
parent 593dc72f86
commit 13b8dc2bbb

View File

@@ -927,7 +927,7 @@ class SP_Users {
user_pass = '" . $passdata['pass'] . "',
user_hashSalt = '" . $passdata['salt'] . "',
user_lastUpdate = NOW()
WHERE user_id = " . (int) $this->userId . " LIMIT 1";
WHERE user_id = " . $this->getUserIdByLogin($this->userLogin) . " LIMIT 1";
if (DB::doQuery($query, __FUNCTION__) === FALSE) {
return FALSE;