From fef5119a0355a788ea5aa85753e25b5abe72387a Mon Sep 17 00:00:00 2001 From: irrlicht Date: Mon, 15 Dec 2025 15:29:16 +0100 Subject: [PATCH] Login redirect only on success and new auth success message --- auth.py | 2 +- templates/auth/login.html | 2 +- templates/auth/registersuccess.html | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/auth.py b/auth.py index 95be6dc..c0263cf 100644 --- a/auth.py +++ b/auth.py @@ -127,7 +127,7 @@ def login(): (uidquery, int(time.time()), timeout, "", session) ) - response = redirect("/") + response = make_response("") response.set_cookie('session', value=session, expires=timeout) return response diff --git a/templates/auth/login.html b/templates/auth/login.html index 23fa338..5ee45d3 100644 --- a/templates/auth/login.html +++ b/templates/auth/login.html @@ -1,5 +1,5 @@

Einloggen

-
+

diff --git a/templates/auth/registersuccess.html b/templates/auth/registersuccess.html index 82b8752..b5a0c9c 100644 --- a/templates/auth/registersuccess.html +++ b/templates/auth/registersuccess.html @@ -1 +1,4 @@

Willkommen im Kontrollverlust!

+

Du kannst dich nun als {{username}} +!

+