SF Feature #3122736 - HTTP authentication realm

This commit is contained in:
Marcel van Dorp
2011-04-29 12:46:49 +10:00
committed by Deon George
parent a35298e7f3
commit 880a86f666
3 changed files with 16 additions and 9 deletions

View File

@@ -41,7 +41,7 @@ if ($app['server']->getAuthType() == 'http') {
die();
}
header(sprintf('WWW-Authenticate: Basic realm="%s %s"',app_name(),_('login')));
header(sprintf('WWW-Authenticate: Basic realm="%s"',$_SESSION[APPCONFIG]->getValue('session','http_realm')));
if ($_SERVER['SERVER_PROTOCOL'] == 'HTTP/1.0')
header('HTTP/1.0 401 Unauthorized'); // http 1.0 method