mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
also send WWW-Authenticate header so UA can ask user
This commit is contained in:
parent
8c4c821514
commit
e3b54e23e8
@ -50,6 +50,7 @@ function fail_exit($msg)
|
||||
echo "<html>\n<head>\n<title>$msg</title>\n<meta http-equiv=\"content-type\" content=\"text/html; charset=".
|
||||
Api\Translation::charset()."\" />\n</head>\n<body><h1>$msg</h1>\n</body>\n</html>\n";
|
||||
|
||||
header('WWW-Authenticate: Basic realm="'.($GLOBALS['egw_info']['flags']['auth_realm'] ?: 'EGroupware').'"');
|
||||
http_response_code(401);
|
||||
exit;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user