From d4a485ac9a0ecade06273dc9df28ac259fbd331a Mon Sep 17 00:00:00 2001 From: Tom Mortensen Date: Sat, 11 Mar 2017 12:54:19 -0800 Subject: [PATCH] webGui: Fix regression adding or changing user account images --- plugins/dynamix/UserAdd.page | 2 +- plugins/dynamix/UserEdit.page | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/dynamix/UserAdd.page b/plugins/dynamix/UserAdd.page index 5ad2626d5..61cd4ba5c 100644 --- a/plugins/dynamix/UserAdd.page +++ b/plugins/dynamix/UserAdd.page @@ -70,7 +70,7 @@ $(function(){ maxfiles:1, maxfilesize:95, // KB url:'/webGui/include/FileUpload.php', - data:{path:path}, + data:{path:path,"csrf_token":""}, beforeEach:function(file) { if (!file.type.match(/^image\/png/)) { swal({title:"Warning",text:"Only PNG images are allowed!",type:"warning"}); diff --git a/plugins/dynamix/UserEdit.page b/plugins/dynamix/UserEdit.page index 65f132f1b..c018ec2de 100644 --- a/plugins/dynamix/UserEdit.page +++ b/plugins/dynamix/UserEdit.page @@ -71,6 +71,7 @@ $(function(){ maxfiles:1, maxfilesize:95, // KB url:'/webGui/include/FileUpload.php', + data:{"csrf_token":""}, beforeEach:function(file) { if (!file.type.match(/^image\/png/)) { swal({title:"Warning",text:"Only PNG images are allowed!",type:"warning"});