Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>
Add a cycles link when user is logged in on the index
src/blueprints/auth.py | 2 +- src/templates/index.html | 6 +++++-
diff --git a/src/blueprints/auth.py b/src/blueprints/auth.py index 85db91707c4881b6078f76464d4bf583764d72db..84a0bad1736af68bc034ef273def4d7622c31daa 100644 --- a/src/blueprints/auth.py +++ b/src/blueprints/auth.py @@ -9,7 +9,7 @@ @auth.route('/login', methods = ['GET', 'POST']) def login(): if request.method == 'GET': if current_user.is_authenticated: - return redirect(url_for('basic.main')) + return redirect(url_for('basic.index')) else: return render_template('login.html', title = "Entrar - Feira Virtual Bem da Terra") else: diff --git a/src/templates/index.html b/src/templates/index.html index 606c3f0ded031709d3e5364ff38d0e1abe49fd0f..ab0e2bdd37dc48482cdccdfc2f4fc8ca18f72d70 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -14,7 +14,11 @@