From 961af44392dde72133a228133ad483cbbc0386a0 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Fri, 13 Sep 2019 22:14:17 -0400 Subject: nfsw/auth.py: Add 'sorry' route. --- nfsw/auth.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'nfsw') 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') + + -- cgit v1.2.3