diff --git a/auth.py b/auth.py index 633bc09..061061f 100644 --- a/auth.py +++ b/auth.py @@ -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):