Add interface for creating new realms.

This is controlled by settings.OPEN_REALM_CREATION; if that setting is
off, this feature doesn't do anything.
This commit is contained in:
Vishnu Ks
2016-06-03 04:32:58 +05:30
committed by Tim Abbott
parent 8213ca135a
commit ad1c3894d9
14 changed files with 245 additions and 15 deletions

View File

@@ -21,6 +21,7 @@ def add_settings(request):
'api_site_required': settings.EXTERNAL_API_PATH != "api.zulip.com",
'email_integration_enabled': settings.EMAIL_GATEWAY_BOT != "",
'email_gateway_example': settings.EMAIL_GATEWAY_EXAMPLE,
'open_realm_creation': settings.OPEN_REALM_CREATION,
'password_auth_enabled': password_auth_enabled(realm),
'dev_auth_enabled': dev_auth_enabled(),
'google_auth_enabled': google_auth_enabled(),