Skip to content

Commit

Permalink
user list: use HTTP GET method for user_list_backend.php
Browse files Browse the repository at this point in the history
Revert to the old Datatables "ajaxSource" API instead of the newer
"ajax" API. This API change was only necessary in order to supply
the pwg_token as POST data, but the user list can be retrieved
without the pwg_token via GET.
  • Loading branch information
dadap committed Jul 25, 2018
1 parent 35e7b79 commit 4bc2bb2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions admin/themes/default/template/user_list.tpl
Expand Up @@ -614,14 +614,8 @@ jQuery(document).on('click', '.close-user-details', function(e) {
deferRender: true,
processing: true,
serverSide: true,
serverMethod: "POST",
ajax: {
url : "admin/user_list_backend.php",
type : "POST",
data : {
pwg_token : pwg_token
}
},
serverMethod: "GET",
ajaxSource: "admin/user_list_backend.php",
pagingType: "simple",
language: {
processing: "{/literal}{'Loading...'|translate|escape:'javascript'}{literal}",
Expand Down

0 comments on commit 4bc2bb2

Please sign in to comment.