fix: Redirect on successful login
All checks were successful
Build Docker / Build Docker (push) Successful in 27s

This commit is contained in:
Nathan Woodburn 2024-06-15 13:43:50 +10:00
parent 1c8b538261
commit b67c1576e1
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -216,6 +216,7 @@ def txtLogin():
print(next_page) print(next_page)
if next_page and next_page != "None": if next_page and next_page != "None":
return redirect(next_page) return redirect(next_page)
return redirect("/")
return render_template("error.html",error="The domain wasn't able to be authenticated.", return render_template("error.html",error="The domain wasn't able to be authenticated.",
message="<br>Double check the TXT record and try again", message="<br>Double check the TXT record and try again",
@ -278,6 +279,7 @@ def txtLoginDomain(domain):
print(next_page) print(next_page)
if next_page and next_page != "None": if next_page and next_page != "None":
return redirect(next_page) return redirect(next_page)
return redirect("/")
return render_template("error.html",error="The domain wasn't able to be authenticated.", return render_template("error.html",error="The domain wasn't able to be authenticated.",
message="<br>Double check the TXT record and try again", message="<br>Double check the TXT record and try again",