summaryrefslogtreecommitdiffstats
path: root/nfsw/auth.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-09-13 22:14:17 -0400
committerrsiddharth <s@ricketyspace.net>2019-09-13 22:14:17 -0400
commit961af44392dde72133a228133ad483cbbc0386a0 (patch)
treed6754e1dfc99fad77a4cb724b75f81143abf600d /nfsw/auth.py
parent32a70fea785f2f53132b369f99075b6fa2e99bbd (diff)
nfsw/auth.py: Add 'sorry' route.
Diffstat (limited to 'nfsw/auth.py')
-rw-r--r--nfsw/auth.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/nfsw/auth.py b/nfsw/auth.py
index 805d93c..08a2a26 100644
--- a/nfsw/auth.py
+++ b/nfsw/auth.py
@@ -150,3 +150,11 @@ def terms():
return render_template('terms.html')
+@bp.route('/sorry')
+@login_required
+@not_agreed
+def sorry():
+ session.clear()
+ return render_template('sorry.html')
+
+