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:
parent
2eae3907a7
commit
5f366b2ec6
2 changed files with 3 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ var missingUsername = "{'Please, enter a login'|translate}";
|
||||||
|
|
||||||
var allUsers = [{$all_users}];
|
var allUsers = [{$all_users}];
|
||||||
var selection = [{$selection}];
|
var selection = [{$selection}];
|
||||||
|
var pwg_token = "{$PWG_TOKEN}";
|
||||||
{/footer_script}
|
{/footer_script}
|
||||||
|
|
||||||
{footer_script}{literal}
|
{footer_script}{literal}
|
||||||
|
|
@ -241,6 +242,7 @@ jQuery(document).ready(function() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
method = 'pwg.users.delete';
|
method = 'pwg.users.delete';
|
||||||
|
data.pwg_token = pwg_token;
|
||||||
break;
|
break;
|
||||||
case 'group_associate':
|
case 'group_associate':
|
||||||
method = 'pwg.groups.addUser';
|
method = 'pwg.groups.addUser';
|
||||||
|
|
|
||||||
|
|
@ -96,6 +96,7 @@ $default_user = get_default_user_info(true);
|
||||||
|
|
||||||
$template->assign(
|
$template->assign(
|
||||||
array(
|
array(
|
||||||
|
'PWG_TOKEN' => get_pwg_token(),
|
||||||
'NB_IMAGE_PAGE' => $default_user['nb_image_page'],
|
'NB_IMAGE_PAGE' => $default_user['nb_image_page'],
|
||||||
'RECENT_PERIOD' => $default_user['recent_period'],
|
'RECENT_PERIOD' => $default_user['recent_period'],
|
||||||
'theme_options' => get_pwg_themes(),
|
'theme_options' => get_pwg_themes(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue