mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
auth: Change the look of SOCIAL_AUTH_SUBDOMAIN when directly opened.
SOCIAL_AUTH_SUBDOMAIN was potentially very confusing when opened by a user, as it had various Login/Signup buttons as if there was a realm on it. Instead, we want to display a more informative page to the user telling them they shouldn't even be there. If possible, we just redirect them to the realm they most likely came from. To make this possible, we have to exclude the subdomain from ROOT_SUBDOMAIN_ALIASES - so that we can give it special behavior.
This commit is contained in:
committed by
Tim Abbott
parent
cf2302b272
commit
fb3864ea3c
@@ -338,8 +338,7 @@ LOGIN_LINK_DISABLED = False
|
||||
FIND_TEAM_LINK_DISABLED = True
|
||||
|
||||
# What domains to treat like the root domain
|
||||
# "auth" is by default a reserved subdomain for the use by python-social-auth.
|
||||
ROOT_SUBDOMAIN_ALIASES = ["www", "auth"]
|
||||
ROOT_SUBDOMAIN_ALIASES = ["www"]
|
||||
# Whether the root domain is a landing page or can host a realm.
|
||||
ROOT_DOMAIN_LANDING_PAGE = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user