Development
This commit is contained in:
parent
eed1d295dc
commit
d9f3bd8289
45 changed files with 635 additions and 666 deletions
11
docker/routlin-dash/app/action_accountlogout.py
Normal file
11
docker/routlin-dash/app/action_accountlogout.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/accountlogout/logout', methods=['POST'])
|
||||
@require_level('viewer')
|
||||
def logout():
|
||||
session.clear()
|
||||
return redirect('/overview')
|
||||
Loading…
Add table
Add a link
Reference in a new issue