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".
multi-ogserver
Javier Sánchez Parra 2021-03-25 13:13:08 +01:00 committed by OpenGnSys Support Team
parent 2ad382b5ed
commit 543b12aca8
1 changed files with 1 additions and 1 deletions

View File

@ -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")