Fixes for csrf token in generate_admin_class
This commit is contained in:
parent
cd616efab1
commit
3aedbaa10f
3 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue