Commit a5d53902 authored by jeremyjaouen's avatar jeremyjaouen Committed by Jérémy Jaouen
Browse files

fix(clapi): reset login attempts on login success (#10749)

parent 52915351
......@@ -577,10 +577,12 @@ class CentreonAPI
$hashedPassword
);
\CentreonClapi\CentreonUtils::setUserId($row['contact_id']);
$this->removeBlockingTimeOnUser();
return 1;
}
if (password_verify($this->password, $row['contact_passwd'])) {
\CentreonClapi\CentreonUtils::setUserId($row['contact_id']);
$this->removeBlockingTimeOnUser();
return 1;
} elseif ($row['contact_auth_type'] == 'ldap') {
$CentreonLog = new \CentreonUserLog(-1, $this->DB);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment