mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 19:29:34 +08:00
DEV: Include login_required
attribute in basic info endpoint (#14064)
This is useful in the DiscourseHub mobile app, currently the app queries the `about.json` endpoint, which can raise a CORS issue in some cases, for example when the site only accepts logins from an external provider.
This commit is contained in:
@ -29,6 +29,7 @@ describe SiteController do
|
||||
expect(json["mobile_logo_url"]).to eq(expected_url)
|
||||
expect(json["header_primary_color"]).to eq("333333")
|
||||
expect(json["header_background_color"]).to eq("ffffff")
|
||||
expect(json["login_required"]).to eq(true)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user