Skip to content
Snippets Groups Projects
Commit c21d062a authored by Jingjing Wu's avatar Jingjing Wu
Browse files

Update routes.py

parent d42980f6
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ def register():
db.session.add(user)
db.session.commit()
flash('Your account has been created! You are now able to log in and make your portfolio', 'success')
return redirect(url_for('main.home'))
return redirect(url_for('users.login'))
return render_template('register.html', title='Register', form=form)
@users.route("/login", methods=['GET','POST'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment