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;