Code comment
This commit is contained in:
parent
7ac1b712e0
commit
b076ea2985
@ -106,7 +106,7 @@ function check_user_password_dolibarr($usertotest,$passwordtotest,$entitytotest=
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
dol_syslog("functions_dolibarr::check_user_password_dolibarr Authentification ko bad password for '".$usertotest."'");
|
dol_syslog("functions_dolibarr::check_user_password_dolibarr Authentification ko bad password for '".$usertotest."'");
|
||||||
sleep(1);
|
sleep(2); // Anti brut force protection
|
||||||
$langs->load('main');
|
$langs->load('main');
|
||||||
$langs->load('errors');
|
$langs->load('errors');
|
||||||
$_SESSION["dol_loginmesg"]=$langs->trans("ErrorBadLoginPassword");
|
$_SESSION["dol_loginmesg"]=$langs->trans("ErrorBadLoginPassword");
|
||||||
|
|||||||
@ -229,7 +229,7 @@ function check_user_password_ldap($usertotest,$passwordtotest,$entitytotest)
|
|||||||
$ldap->ldapErrorText = ldap_error($ldap->connection);
|
$ldap->ldapErrorText = ldap_error($ldap->connection);
|
||||||
dol_syslog("functions_ldap::check_user_password_ldap ".$ldap->ldapErrorCode." ".$ldap->ldapErrorText);
|
dol_syslog("functions_ldap::check_user_password_ldap ".$ldap->ldapErrorCode." ".$ldap->ldapErrorText);
|
||||||
}
|
}
|
||||||
sleep(1);
|
sleep(2); // Anti brut force protection
|
||||||
$langs->load('main');
|
$langs->load('main');
|
||||||
$langs->load('other');
|
$langs->load('other');
|
||||||
$langs->load('errors');
|
$langs->load('errors');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user