missed that bit in the github issue where Cara wanted it to redirect to login page. quick fix
This commit is contained in:
parent
8076d8571d
commit
3ec089c749
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue