From 543b12aca8f9ab3801da9fafefbed4a04518eab4 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Thu, 25 Mar 2021 13:13:08 +0100 Subject: Change login redirection to "Home" When the user logs into ogcp, the web page redirects him to "Scopes". In the future ogcp will have a dashboard showing multiple stats and details. This dashboard will be in "Home" path and we want the user to see it when he logs in. Change login redirection from "Scopes" to "Home". --- ogcp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ogcp') diff --git a/ogcp/views.py b/ogcp/views.py index 627f772..48ff798 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -134,7 +134,7 @@ def login(): flash(_('Incorrect password')) return render_template('auth/login.html', form=form) login_user(user) - return redirect(url_for('scopes')) + return redirect(url_for('index')) return render_template('auth/login.html', form=LoginForm()) @app.route("/logout") -- cgit v1.2.3-18-g5258