mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 01:53:59 +00:00
Removed confusing ALLOW_REGISTER setting.
ALLOW_REGISTER was no longer being used in determining whether you could register for the app, so I've removed it to avoid additional local-dev / production issues. This closes #1613. (imported from commit c928c6d350602d35f745ae1e60d734e4567885fc)
This commit is contained in:
@@ -55,11 +55,7 @@ class HomepageForm(forms.Form):
|
||||
# This form is important because it determines whether users can
|
||||
# register for our product. Be careful when modifying the
|
||||
# validators.
|
||||
if settings.ALLOW_REGISTER:
|
||||
email = forms.EmailField()
|
||||
else:
|
||||
validators = [is_inactive]
|
||||
email = forms.EmailField(validators=validators)
|
||||
email = forms.EmailField(validators=[is_inactive,])
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.domain = kwargs.get("domain")
|
||||
|
||||
Reference in New Issue
Block a user