diff options
author | rsiddharth <s@ricketyspace.net> | 2019-10-26 16:25:51 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2019-10-26 16:25:51 -0400 |
commit | ac05b21a590acf958d5964cd90c3a6781bc46662 (patch) | |
tree | 397775f61b12292efa5d143c1f485443856b30ab /nfsw/auth.py | |
parent | d53f7067f882271196c160b62dbb7c5212e513d5 (diff) |
nfsw/auth.py: Update logout.
- Remove it as an endpoint.
- Remove the epilogue:done:USER_ID key from redis.
Diffstat (limited to 'nfsw/auth.py')
-rw-r--r-- | nfsw/auth.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nfsw/auth.py b/nfsw/auth.py index cbaa6e5..6be305e 100644 --- a/nfsw/auth.py +++ b/nfsw/auth.py @@ -12,6 +12,7 @@ from werkzeug.security import ( ) from nfsw.db import get_db +from nfsw.redis import redis bp = Blueprint('auth', __name__) @@ -174,11 +175,9 @@ def sorry(): return render_template('sorry.html') -@bp.route('/logout') -@login_required def logout(): + redis().delete('epilogue:done') session.clear() - return redirect(url_for('index')) @bp.before_app_request |