Skip to content

Commit

Permalink
feature 2976: pwg.users.delete requires pwg_token
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@25282 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Nov 1, 2013
1 parent 2eae390 commit 5f366b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin/themes/default/template/user_list.tpl
Expand Up @@ -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}
Expand Down Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions admin/user_list.php
Expand Up @@ -96,6 +96,7 @@

$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(),
Expand Down

0 comments on commit 5f366b2

Please sign in to comment.