aboutsummaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-05-20 14:23:39 -0400
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-05-20 14:23:39 -0400
commit1c93933119a88d4f83f6bebac0e3c4ffc4c130e2 (patch)
tree3ed9970427e3f4add4fd5d04420e678a7553e03d /config.py
parentbump version (diff)
downloadAnnotateChange-1c93933119a88d4f83f6bebac0e3c4ffc4c130e2.tar.gz
AnnotateChange-1c93933119a88d4f83f6bebac0e3c4ffc4c130e2.zip
Bugfix for registration email restriction
Diffstat (limited to 'config.py')
-rw-r--r--config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.py b/config.py
index 865e098..5727c2b 100644
--- a/config.py
+++ b/config.py
@@ -54,11 +54,11 @@ class Config(object):
# user emails allowed
USER_EMAIL_DOMAINS = os.environ.get("USER_EMAIL_DOMAINS") or ""
USER_EMAIL_DOMAINS = [
- x.split() for x in USER_EMAIL_DOMAINS.split(";")
+ x.strip() for x in USER_EMAIL_DOMAINS.split(";") if x.strip()
]
USER_EMAIL_DOMAINS = (
None if not USER_EMAIL_DOMAINS else USER_EMAIL_DOMAINS
)
USER_EMAILS = os.environ.get("USER_EMAILS") or ""
- USER_EMAILS = [x.split() for x in USER_EMAILS.split(";")]
+ USER_EMAILS = [x.strip() for x in USER_EMAILS.split(";") if x.strip()]
USER_EMAILS = None if not USER_EMAILS else USER_EMAILS