ability to log out

master
Marek Baczynski 6 years ago
parent 944d16bfe4
commit a2e2b8992b

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

Loading…
Cancel
Save