feature 2976: pwg.users.delete requires pwg_token

git-svn-id: http://piwigo.org/svn/trunk@25282 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2013-11-01 12:37:32 +00:00
parent 2eae3907a7
commit 5f366b2ec6
2 changed files with 3 additions and 0 deletions

View File

@@ -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';

View File

@@ -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(),