Don't visit index after login or logout
This commit is contained in:
parent
d4eb60fe33
commit
7c075227d7
|
@ -387,7 +387,7 @@ def logout():
|
|||
@app.route('/done/')
|
||||
def done():
|
||||
flash('login successful')
|
||||
return redirect(url_for('index'))
|
||||
return redirect(url_for('map_start_page'))
|
||||
|
||||
@app.route('/oauth/start')
|
||||
def start_oauth():
|
||||
|
@ -462,7 +462,7 @@ def oauth_callback():
|
|||
database.session.commit()
|
||||
flask_login.login_user(user)
|
||||
|
||||
next_page = session.get('next') or url_for('index_page')
|
||||
next_page = session.get('next') or url_for('map_start_page')
|
||||
return redirect(next_page)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue