@ -132,6 +132,12 @@ def login():
else:
return render_template('login.html')
@app.route("/logout")
@login_required
def logout():
logout_user()
return redirect('/')
# callback to reload the user object
@login_manager.user_loader
def load_user(userid):