summaryrefslogtreecommitdiffstats
path: root/nfsw
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-10-26 15:12:50 -0400
committerrsiddharth <s@ricketyspace.net>2019-10-26 15:12:50 -0400
commit646d0f6060e55b8123471341ac1cd3883952e621 (patch)
tree43751cbc34fb5f0342097bdc5ff8f4f8b108c805 /nfsw
parent925d78af8412f7f3ba3b584d25cca26cfff4f8db (diff)
nfsw/auth.py: On 'auth' redirect to epilogue.
Diffstat (limited to 'nfsw')
-rw-r--r--nfsw/auth.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/nfsw/auth.py b/nfsw/auth.py
index f8fe2ad..cbaa6e5 100644
--- a/nfsw/auth.py
+++ b/nfsw/auth.py
@@ -6,6 +6,7 @@ from flask import (
Blueprint, flash, g, redirect, render_template, request,
session, url_for
)
+
from werkzeug.security import (
check_password_hash, generate_password_hash
)
@@ -44,7 +45,7 @@ def anon_only(view):
@functools.wraps(view)
def wrapped_view(**kwargs):
if g.user is not None:
- return redirect(url_for('io'))
+ return redirect(url_for('epilogue'))
return view(**kwargs)
@@ -55,7 +56,7 @@ def not_agreed(view):
@functools.wraps(view)
def wrapped_view(**kwargs):
if g.user['terms_agreed']:
- return redirect(url_for('io'))
+ return redirect(url_for('epilogue'))
return view(**kwargs)
@@ -95,7 +96,7 @@ def login():
session.clear()
session['user_id'] = user['id']
- return redirect(url_for('io'))
+ return redirect(url_for('epilogue'))
return render()
@@ -160,7 +161,7 @@ def terms():
(g.user['id'],))
db.commit()
- return redirect(url_for('io'))
+ return redirect(url_for('epilogue'))
return render_template('terms.html')