(cp 63932b9) fixes #735, add API method pwg.users.getAuthKey

This commit is contained in:
plegall
2018-02-22 14:17:44 +01:00
parent 072ae305f8
commit 6d2f2a1d0d
2 changed files with 36 additions and 0 deletions
+12
View File
@@ -943,6 +943,18 @@ enabled_high, registration_date, registration_date_string, registration_date_sin
array('admin_only'=>true, 'post_only'=>true)
);
$service->addMethod(
'pwg.users.getAuthKey',
'ws_users_getAuthKey',
array(
'user_id' => array('type'=>WS_TYPE_ID),
'pwg_token' => array(),
),
'Get a new authentication key for a user. Only works for normal/generic users (not admins)',
$ws_functions_root . 'pwg.users.php',
array('admin_only'=>true, 'post_only'=>true)
);
$service->addMethod(
'pwg.users.setInfo',
'ws_users_setInfo',