From b67c1576e1616b33ea6c2f58c7fefaf1eeb44a85 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sat, 15 Jun 2024 13:43:50 +1000 Subject: [PATCH] fix: Redirect on successful login --- website/routes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/routes.py b/website/routes.py index be38a48..98fdda3 100644 --- a/website/routes.py +++ b/website/routes.py @@ -216,6 +216,7 @@ def txtLogin(): print(next_page) if next_page and next_page != "None": return redirect(next_page) + return redirect("/") return render_template("error.html",error="The domain wasn't able to be authenticated.", message="
Double check the TXT record and try again", @@ -278,6 +279,7 @@ def txtLoginDomain(domain): print(next_page) if next_page and next_page != "None": return redirect(next_page) + return redirect("/") return render_template("error.html",error="The domain wasn't able to be authenticated.", message="
Double check the TXT record and try again",