Fixes for csrf token in generate_admin_class

This commit is contained in:
Antonio de la Rosa 2024-05-25 18:29:23 +02:00
parent cd616efab1
commit 3aedbaa10f
3 changed files with 5 additions and 1 deletions

View file

@ -248,6 +248,6 @@ def check_csrf(name_csrf_token='csrf_token'):
csrf_token=session.get('csrf_token', '')
if csrf_token=='' or csrf_token!=request.form.get(name_csrf_token):
abort(404)
abort(403)