Skip to content

Commit

Permalink
Fix error on updating LDAP user password on database
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxsmin committed Nov 6, 2013
1 parent 593dc72 commit 13b8dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/users.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ public function updateUserLDAP() {
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;
Expand Down

0 comments on commit 13b8dc2

Please sign in to comment.