mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Return the Request ID if auth fails
Still only return it if in test_mode.
This commit is contained in:
parent
a02fffa4ca
commit
8f7da93a0d
@ -106,6 +106,8 @@ class HTTPAuthSession {
|
||||
|
||||
header('HTTP/1.1 401 Unauthorized', true, 401 );
|
||||
header('Content-type: text/plain; ; charset="utf-8"' );
|
||||
if ( $c->test_mode ) header( "Request-ID: " . request_id() );
|
||||
|
||||
header( $auth_header );
|
||||
echo 'Please log in for access to this system.';
|
||||
if ( isset($_SERVER['PHP_AUTH_USER']) ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user