registration

This commit is contained in:
aitzol76 2022-09-11 21:58:25 +02:00
parent d361594e85
commit 6e24de0621

4
app.py
View File

@ -57,7 +57,7 @@ def get_index():
@get('/signup') @get('/signup')
def get_index(): def get_index():
newSession() newSession()
if isOpen: if allowed:
return signup_tpl(str=i18n.str) return signup_tpl(str=i18n.str)
else: else:
return index_tpl(alerts=[('error', i18n.msg[28], 'upDown')], str=i18n.str) return index_tpl(alerts=[('error', i18n.msg[28], 'upDown')], str=i18n.str)
@ -814,7 +814,7 @@ def reg():
if CONF['general']['allow_registration'] == 'True': if CONF['general']['allow_registration'] == 'True':
return True return True
isOpen = reg() allowed = reg()
class Error(Exception): class Error(Exception):
pass pass