Add logout endpoint

master
informatic 2017-10-11 01:57:52 +02:00
parent 76037fb02b
commit 89b03d68b6
1 changed files with 5 additions and 0 deletions

View File

@ -300,6 +300,11 @@ def login():
return redirect(next or url_for('profile'))
return render_template('login_oauth.html', form=form)
@app.route('/logout')
def logout():
logout_user()
return redirect('/')
@login_manager.user_loader
def load_user(user_id):