From 13b8dc2bbbd5d5907bbce8c32ca4ef9df98e364d Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Wed, 6 Nov 2013 01:50:29 +0100 Subject: [PATCH] Fix error on updating LDAP user password on database --- inc/users.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/users.class.php b/inc/users.class.php index 8c99c924..d3480af7 100644 --- a/inc/users.class.php +++ b/inc/users.class.php @@ -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;