diff options
-rw-r--r-- | app/views/auth.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/auth.py b/app/views/auth.py index 0193431..eb9a46a 100644 --- a/app/views/auth.py +++ b/app/views/auth.py @@ -21,7 +21,10 @@ def register_user(): try: db.session.commit() except IntegrityError: - flash("Oops! An account with that email already exists") + flash("Oops! An account with that email already exists") + return render_template("auth/signup.html",form=form) + flask_login.login_user(user) + return redirect(url_for("user_dashboard")) flash_errors(form) return render_template("auth/signup.html",form=form) |