forked from rDrama/rDrama
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
|
from files.helpers.const import SETTINGS_FILENAME
|
||||||
|
|
||||||
_SETTINGS = {
|
_SETTINGS = {
|
||||||
"Bots": True,
|
"bots": True,
|
||||||
"Fart mode": False,
|
"fart_mode": False,
|
||||||
"Read-only mode": False,
|
"read_only_mode": False,
|
||||||
"Signups": True,
|
"signups": True,
|
||||||
"login_required": False,
|
"login_required": False,
|
||||||
"under_siege": False,
|
"under_siege": False,
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ def error_401(e):
|
||||||
qs = urlencode(dict(request.values))
|
qs = urlencode(dict(request.values))
|
||||||
argval = quote(f"{path}?{qs}", safe='').replace('/logged_out','')
|
argval = quote(f"{path}?{qs}", safe='').replace('/logged_out','')
|
||||||
if not argval: argval = '/'
|
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}")
|
else: return redirect(f"/signup?redirect={argval}")
|
||||||
|
|
||||||
@app.errorhandler(500)
|
@app.errorhandler(500)
|
||||||
|
|
Loading…
Reference in New Issue