Development
This commit is contained in:
parent
563d82daf3
commit
70ccfe2c29
48 changed files with 549 additions and 578 deletions
|
|
@ -1,11 +1,11 @@
|
|||
from flask import Blueprint, session, redirect
|
||||
from auth import require_level
|
||||
import auth
|
||||
|
||||
bp = Blueprint('accountlogout', __name__)
|
||||
|
||||
|
||||
@bp.route('/action/accountlogout/logout', methods=['POST'])
|
||||
@require_level('viewer')
|
||||
@auth.require_level('viewer')
|
||||
def logout():
|
||||
session.clear()
|
||||
return redirect('/overview')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue