From 033f5a6e7f0073d8f565e978b427f984ef5596c6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 13 Aug 2021 23:12:11 +0200 Subject: [PATCH] fdfd --- files/routes/login.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/routes/login.py b/files/routes/login.py index 7482d6879..4cc84cda8 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -125,8 +125,7 @@ def login_post(): # check for previous page redir = request.form.get("redirect", "/") - if "/logged_out" not in redir: return redirect(redir) - else: return redirect(redir.replace("/logged_out", "")) + return redirect(redir.replace("/logged_out", "")) @app.get("/me")