forked from MarseyWorld/MarseyWorld
config: fix _SETTINGS dict and stray signups
parent
497c9bcff1
commit
46f2b805ef
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue