Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(sql): fix query to select contact during ldap import (#11579)
Browse files Browse the repository at this point in the history
Refs: MON-14263
  • Loading branch information
kduret authored Aug 12, 2022
1 parent 00114e1 commit 7224675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/class/centreonAuth.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ protected function checkUser($username, $password, $token)
*/
$statement = $this->pearDB->prepare(
"SELECT * FROM `contact` " .
"WHERE `contact_alias` = :contact_alias" .
"WHERE `contact_alias` = :contact_alias " .
"AND `contact_activate` = '1' AND `contact_register` = '1' LIMIT 1"
);
$statement->bindValue(':contact_alias', $this->pearDB->escape($username, true), \PDO::PARAM_STR);
Expand Down

0 comments on commit 7224675

Please sign in to comment.