From 3ec089c749c2ab8ac7ca796451f0ef4e9a4947de Mon Sep 17 00:00:00 2001 From: ngolp Date: Wed, 16 Oct 2024 15:49:17 -0400 Subject: [PATCH] missed that bit in the github issue where Cara wanted it to redirect to login page. quick fix --- goathacks/registration/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goathacks/registration/__init__.py b/goathacks/registration/__init__.py index 8488d66..c9faf0b 100644 --- a/goathacks/registration/__init__.py +++ b/goathacks/registration/__init__.py @@ -72,7 +72,7 @@ def register(): flash("User with email " + email + " already exists.") else: flash("An unknown error occurred.") - return render_template("register.html", form=form) + return redirect(url_for("registration.login")) #user successfully registered, so login flask_login.login_user(user)