summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-03-25 13:13:08 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-05-20 18:44:07 +0200
commit543b12aca8f9ab3801da9fafefbed4a04518eab4 (patch)
tree83d188141598bc8edb0c4ecdf7061504cba1033a /ogcp
parent2ad382b5ed0e927121308f83a51d8f3a89d41e50 (diff)
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".
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/views.py2
1 files changed, 1 insertions, 1 deletions
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")