missed that bit in the github issue where Cara wanted it to redirect to login page. quick fix

This commit is contained in:
ngolp 2024-10-16 15:49:17 -04:00
parent 5188cde7ac
commit 7a52071db3

View file

@ -65,7 +65,7 @@ def register():
flash("User with email " + email + " already exists.") flash("User with email " + email + " already exists.")
else: else:
flash("An unknown error occurred.") flash("An unknown error occurred.")
return render_template("register.html", form=form) return redirect(url_for("registration.login"))
#user successfully registered, so login #user successfully registered, so login
flask_login.login_user(user) flask_login.login_user(user)