mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-01 16:11:20 +00:00
add a log entry for login failures (fix #105)
This commit is contained in:
parent
88bf8fa704
commit
528f4dd62d
@ -100,7 +100,11 @@ class HTTPAuthSession {
|
|||||||
header('Content-type: text/plain; ; charset="utf-8"' );
|
header('Content-type: text/plain; ; charset="utf-8"' );
|
||||||
header( $auth_header );
|
header( $auth_header );
|
||||||
echo 'Please log in for access to this system.';
|
echo 'Please log in for access to this system.';
|
||||||
dbg_error_log( "HTTPAuth", ":Session: User is not authorised: %s ", $_SERVER['REMOTE_ADDR'] );
|
if ( isset($_SERVER['PHP_AUTH_USER']) ) {
|
||||||
|
dbg_error_log( "ERROR", "authentication failure for user '%s' from host [%s]", $_SERVER['PHP_AUTH_USER'], $_SERVER['REMOTE_ADDR'] );
|
||||||
|
} else {
|
||||||
|
dbg_error_log( "HTTPAuth", ":Session: User is not authorised: %s ", $_SERVER['REMOTE_ADDR'] );
|
||||||
|
}
|
||||||
@ob_flush(); exit(0);
|
@ob_flush(); exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user