forked from GNUsocial/gnu-social
Use site's name for basic auth realm
This commit is contained in:
parent
da9d02b038
commit
4efbe32f6a
@ -90,8 +90,10 @@ class ApiAuthAction extends ApiAction
|
|||||||
{
|
{
|
||||||
$this->basicAuthProcessHeader();
|
$this->basicAuthProcessHeader();
|
||||||
|
|
||||||
|
$realm = common_config('site', 'name') . ' API';
|
||||||
|
|
||||||
if (!isset($this->auth_user)) {
|
if (!isset($this->auth_user)) {
|
||||||
header('WWW-Authenticate: Basic realm="StatusNet API"');
|
header('WWW-Authenticate: Basic realm="' . $realm . '"');
|
||||||
|
|
||||||
// show error if the user clicks 'cancel'
|
// show error if the user clicks 'cancel'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user