aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2013-11-01 12:37:32 +0000
committerplegall <plg@piwigo.org>2013-11-01 12:37:32 +0000
commit5f366b2ec61e344824ffcd087cab982da57ab69a (patch)
treee14489cd93e0eea9c9d04c5ea7b34f1b034e027f /admin
parent2eae3907a7e94f82c43cd755fe0319d8bf4dac4e (diff)
feature 2976: pwg.users.delete requires pwg_token
git-svn-id: http://piwigo.org/svn/trunk@25282 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/themes/default/template/user_list.tpl2
-rw-r--r--admin/user_list.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/admin/themes/default/template/user_list.tpl b/admin/themes/default/template/user_list.tpl
index 6cd7de900..380ca6f20 100644
--- a/admin/themes/default/template/user_list.tpl
+++ b/admin/themes/default/template/user_list.tpl
@@ -14,6 +14,7 @@ var missingUsername = "{'Please, enter a login'|translate}";
var allUsers = [{$all_users}];
var selection = [{$selection}];
+var pwg_token = "{$PWG_TOKEN}";
{/footer_script}
{footer_script}{literal}
@@ -241,6 +242,7 @@ jQuery(document).ready(function() {
return false;
}
method = 'pwg.users.delete';
+ data.pwg_token = pwg_token;
break;
case 'group_associate':
method = 'pwg.groups.addUser';
diff --git a/admin/user_list.php b/admin/user_list.php
index 3c0b6488d..ac88c4d60 100644
--- a/admin/user_list.php
+++ b/admin/user_list.php
@@ -96,6 +96,7 @@ $default_user = get_default_user_info(true);
$template->assign(
array(
+ 'PWG_TOKEN' => get_pwg_token(),
'NB_IMAGE_PAGE' => $default_user['nb_image_page'],
'RECENT_PERIOD' => $default_user['recent_period'],
'theme_options' => get_pwg_themes(),