summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nfsw/auth.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/nfsw/auth.py b/nfsw/auth.py
index 08a2a26..654f6c2 100644
--- a/nfsw/auth.py
+++ b/nfsw/auth.py
@@ -158,3 +158,10 @@ def sorry():
return render_template('sorry.html')
+@bp.route('/logout')
+@login_required
+def logout():
+ session.clear()
+ return redirect(url_for('index'))
+
+