Closed (fixed)
Project:
Services
Version:
6.x-0.13
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2009 at 10:20 UTC
Updated:
11 Jun 2009 at 15:29 UTC
The user.save service is missing a variable. At the moment only the variable uid is required. There should be a second variable, containing the fields (name, mail, pass, etc.). Trying the user.save service 'out of the box' does not work for me, when I use the following code, it does:
function user_service_save($account, $user) {
if (!$account = user_save($account, $user)) {
return services_error(t('Error on saving the user.'));
}
// Everything went right.
// Return the user ID
return $account->uid;
}
Comments
Comment #1
marcingy commentedThis is fixed in the head version see 6-2-x-dev.