I see, so is there any way to update user preferences such as real name and password via the API or has that not yet been implemented?
On 10/10/13 11:29, Brad Jorsch (Anomie) wrote: > The real name isn't actually an option, it's a field in the user > table. Special:Preferences handles it specially. > > Your API command does correctly set a "realname" option, and it can be > fetched using api.php?format=jsonfm&action=query&meta=userinfo&uiprop=options, > but as you've noted that doesn't affect the realname field in the user > table (and therefore anything else that actually uses the realname). > > On Thu, Oct 10, 2013 at 8:04 AM, Aran <[email protected]> wrote: >> My command was: >> >> action => 'options', >> token => $token, >> format => 'xml', >> change => 'realname=Foo Bar' >> >> Which resulted in success but did nothing. >> >> >> On 10/10/13 06:22, Andre Klapper wrote: >>> Hi Aran, >>> >>> On Wed, 2013-10-09 at 16:53 -0300, Aran wrote: >>>> I'm trying to set a user's "realname" option on a local wiki (1.21.1) >>>> using the API. I can login successfully, confirm my login token fine and >>>> then I can get the options token and make the call to change options >>>> using the token. >>>> >>>> I get "Success" returned when I change the realname (or any other valid >>>> option such as password etc). But when I look in the user's preferences, >>>> or directly in the user db table there's nothing changed. >>> Could you provide the exact command, so somebody else could try to >>> reproduce? >>> >>> andre >>> >>> (Also, for future reference, please avoid replying to other emails and >>> replacing the subject line with your topic. Start a new thread instead.) >> >> _______________________________________________ >> Wikitech-l mailing list >> [email protected] >> https://lists.wikimedia.org/mailman/listinfo/wikitech-l > > _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
