From 7a52071db300485bec38dbea024f59c629c80516 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 e9eef94..6f349c1 100644 --- a/goathacks/registration/__init__.py +++ b/goathacks/registration/__init__.py @@ -65,7 +65,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)