From b4b241600704cf1be963a1ff51191eec020434a4 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 23 Sep 2019 15:49:12 +0100 Subject: Add configuration option for accepting registrations --- config.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.py') diff --git a/config.py b/config.py index 8ebcece..dc25767 100644 --- a/config.py +++ b/config.py @@ -60,3 +60,6 @@ class Config(object): USER_EMAILS = os.environ.get("USER_EMAILS") or "" USER_EMAILS = [x.strip() for x in USER_EMAILS.split(";") if x.strip()] USER_EMAILS = None if not USER_EMAILS else USER_EMAILS + + # other + ACCEPTING_REGISTRATION = bool(int(os.environ.get('ACCEPTING_REGISTRATION', 0))) or False -- cgit v1.2.3