Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
centreon
centreon
Commits
a5d53902
Commit
a5d53902
authored
Feb 22, 2022
by
jeremyjaouen
Committed by
Jérémy Jaouen
May 11, 2022
Browse files
fix(clapi): reset login attempts on login success (#10749)
parent
52915351
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/class/centreon-clapi/centreonAPI.class.php
View file @
a5d53902
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment