Development
This commit is contained in:
parent
d8d1d46fd2
commit
eed1d295dc
69 changed files with 3355 additions and 3230 deletions
0
docker/routlin-dash/app/pages/accountlogout/__init__.py
Normal file
0
docker/routlin-dash/app/pages/accountlogout/__init__.py
Normal file
11
docker/routlin-dash/app/pages/accountlogout/action.py
Normal file
11
docker/routlin-dash/app/pages/accountlogout/action.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from flask import Blueprint, session, redirect
|
||||
from auth import require_level
|
||||
|
||||
bp = Blueprint('accountlogout', __name__)
|
||||
|
||||
|
||||
@bp.route('/action/log_out', methods=['POST'])
|
||||
@require_level('viewer')
|
||||
def log_out():
|
||||
session.clear()
|
||||
return redirect('/view/view_overview')
|
||||
Loading…
Add table
Add a link
Reference in a new issue