mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +01:00
also send WWW-Authenticate header so UA can ask user
This commit is contained in:
parent
68a0bb9ac9
commit
818f99fdbf
@ -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