From 6e24de0621fde4960aa46e72173e82df46e842df Mon Sep 17 00:00:00 2001 From: aitzol76 Date: Sun, 11 Sep 2022 21:58:25 +0200 Subject: [PATCH] registration --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 3dc9ed2..b7294de 100644 --- a/app.py +++ b/app.py @@ -57,7 +57,7 @@ def get_index(): @get('/signup') def get_index(): newSession() - if isOpen: + if allowed: return signup_tpl(str=i18n.str) else: return index_tpl(alerts=[('error', i18n.msg[28], 'upDown')], str=i18n.str) @@ -814,7 +814,7 @@ def reg(): if CONF['general']['allow_registration'] == 'True': return True -isOpen = reg() +allowed = reg() class Error(Exception): pass