mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-05 13:39:23 +01:00
* Login page: use HTTP status code 401 for a failed login, so tools like fail2ban can recognice that
This commit is contained in:
parent
4c7709d49f
commit
98a6a7a9b8
@ -175,6 +175,11 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// use HTTP status code 401 for a failed login, so tools like fail2ban can recognice that for login page too
|
||||||
|
if ($_GET['cd'] == Api\Session::CD_BAD_LOGIN_OR_PASSWORD)
|
||||||
|
{
|
||||||
|
http_response_code(401);
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($passwd_type) || $submit)
|
if (isset($passwd_type) || $submit)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user