config: fix _SETTINGS dict and stray signups

pull/32/head
justcool393 2022-11-30 13:03:46 -06:00
parent 497c9bcff1
commit 46f2b805ef
2 changed files with 5 additions and 5 deletions

View File

@ -7,10 +7,10 @@ import gevent_inotifyx as inotify
from files.helpers.const import SETTINGS_FILENAME
_SETTINGS = {
"Bots": True,
"Fart mode": False,
"Read-only mode": False,
"Signups": True,
"bots": True,
"fart_mode": False,
"read_only_mode": False,
"signups": True,
"login_required": False,
"under_siege": False,
}

View File

@ -48,7 +48,7 @@ def error_401(e):
qs = urlencode(dict(request.values))
argval = quote(f"{path}?{qs}", safe='').replace('/logged_out','')
if not argval: argval = '/'
if session.get("history") or not get_setting("Signups"): return redirect(f"/login?redirect={argval}")
if session.get("history") or not get_setting("signups"): return redirect(f"/login?redirect={argval}")
else: return redirect(f"/signup?redirect={argval}")
@app.errorhandler(500)