Quick-Fix Mensa id-gen

This commit is contained in:
2023-12-04 22:12:34 +01:00
parent b07438fcfb
commit 1b69dc7085
3 changed files with 3 additions and 8 deletions

6
app.py
View File

@ -203,6 +203,7 @@ def login_post():
@app.route("/backendpoc/log-out")
@login_required
def logout():
cookie = request.cookies.get("cnsc")
dualis = Dualis.query.filter_by(uid=current_user.id).first()
@ -216,10 +217,5 @@ def logout():
return red
@app.errorhandler(AttributeError)
def handle_anon(e):
return redirect(url_for("login"), code=e)
if __name__ == "__main__":
app.run(host='0.0.0.0', port=2024, debug=True)