ignore the key of csrf_token in backend

This commit is contained in:
Firmlyzhu 2018-12-22 17:03:41 +08:00
parent a19ecec022
commit 0a05b4091f
1 changed files with 2 additions and 0 deletions

View File

@ -803,6 +803,8 @@ def add_job(user,beans,form):
'message': 'add batch job success'
}
for key in job_data:
if key == 'csrf_token':
continue
key_arr = key.split('_')
value = job_data[key]
if key_arr[0] == 'srcAddr' and value == '':