forked from MarseyWorld/MarseyWorld
replace '/logged_out' from redir value
parent
259e31de7d
commit
c2e4b99d39
|
@ -18,7 +18,8 @@ def error_401(e):
|
||||||
else:
|
else:
|
||||||
path = request.path
|
path = request.path
|
||||||
qs = urlencode(dict(request.values))
|
qs = urlencode(dict(request.values))
|
||||||
argval = quote(f"{path}?{qs}", safe='')
|
argval = quote(f"{path}?{qs}", safe='').replace('/logged_out','')
|
||||||
|
if not argval: argval = '/'
|
||||||
if session.get("history"): return redirect(f"/login?redirect={argval}")
|
if session.get("history"): return redirect(f"/login?redirect={argval}")
|
||||||
else: return redirect(f"/signup?redirect={argval}")
|
else: return redirect(f"/signup?redirect={argval}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue