SF Feature #3122736 - HTTP authentication realm
This commit is contained in:
committed by
Deon George
parent
a35298e7f3
commit
880a86f666
@@ -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
|
||||
|
Reference in New Issue
Block a user