Flask app progress
This commit is contained in:
parent
c4fe022d42
commit
b0994069ad
38 changed files with 6631 additions and 220 deletions
11
docker/router-dash/app/action_log_out.py
Normal file
11
docker/router-dash/app/action_log_out.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
from flask import Blueprint, session, redirect
|
||||
from auth import require_level
|
||||
|
||||
bp = Blueprint('action_log_out', __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