API talk:Account creation/pre-1.27

From MediaWiki.org
Jump to navigation Jump to search

This doesn't work. —The preceding unsigned comment was added by 87.248.169.40 (talkcontribs) 08:02, 18 September 2007‎


It hasn't been checked into the main tree yet. --Yurik 17:26, 18 September 2007 (UTC)

Is there a way to make this work in version 1.13? I tried with curl but did not work. —The preceding unsigned comment was added by 83.77.69.101 (talkcontribs) 10:16, 30 September 2009‎

It would be helpful, if they added it. Did Vodafone provided source code? I might add it to my wiki on my own --TakeruDavis 18:58, 4 June 2010 (UTC)

Why hasn't this been implemented? Is there an alternative to this functionality that's eluding me? —The preceding unsigned comment was added by 129.174.114.5 (talkcontribs) 15:15, 11 June 2012

I also attempted to get ApiCreateAccount.php to work, but it seems buggy. In particular, it has these lines:
$status = $loginForm->addNewaccountInternal();
$result = array();
if( $status->isGood() ) {

addNewaccountInternal() returns a bool or a User object, not a Status. See LoginForm Class Reference. Leucosticte (talk) 13:45, 25 September 2012 (UTC)

I really hope someone implements this soon, seeing that it's been a mere suggestion for over five years now. I'm writing an iPhone app that could use this API, but I know next to nothing about PHP so I wouldn't be able to implement it myself. —Montgolfière (talk) 22:58, 1 December 2012 (UTC)
Pending implementation, you can still create accounts using the Manual:parameters to index.php. See Chris G's botclasses' wikipedia::createaccount(), for instance. Leucosticte (talk) 07:08, 2 December 2012 (UTC)

Captcha additions[edit]

work in progress

  • Normally, we want to prompt people for the captcha on the same screen as they input their name/password, not on a second request, so we need a preflight.
  • That's ok since we need one for the token anyway... but we have to do our preflight without the username/pass since they're not provided yet.
    • note that preflighting with a stub username works -- but might be better to let it be empty.

Captcha output params:

<?xml version="1.0"?>
<api>
 <createaccount token="387bc54bd0ec29333178800ce4213306" result="needcaptcha">
   <captcha type="simple" mime="text/plain" id="782592440" question="9+9" />
 </createaccount>
</api>

or

<?xml version="1.0"?>
<api>
 <createaccount token="387bc54bd0ec29333178800ce4213306" result="needcaptcha">
   <captcha type="image" mime="image/png" id="782592440" url="http://example.com/wiki/Special:Captcha/image?wpCaptchaId=782592440" />
 </createaccount>
</api>

Send the "captchaid" and "captchaword" parameters back in with the request, along with the token, and it'll work.

In theory. ???

When is this going to be working? I've tried calling this API on the English Wikipedia, which is running MediaWiki 1.22wmf3, and the CAPTCHA portion of the API is not implemented. This makes it essentially useless, because right now it will abort the creation of your account, saying that it needs a correct "confirmation code". I'm currently writing an app that could make use of this API, and I would like to know when or if this will be functional soon. Thanks in advance. --Montgolfière (talk) 02:24, 14 May 2013 (UTC)

Brion's Patch to make this work with Captchas[edit]

See (now dormant?) patchset. Yuvipanda (talk) 22:27, 12 June 2013 (UTC)

Automatic Password not working[edit]

Hi,

I have been trying out the process of creating users using the API (Mediawiki 1.25.1). The user account creation works fine but when I use the "mailpassword" option the generated passwords do not seem to work. The emails are set correctly with the details but the passwords just do not work. The whole process works without an error but the generated passwords fail.

If I use a defined password, user creation is fine and the defined passwords work, but I can then not email the defined password to the new user because the new user still needs to confirm their email address.

Any suggestions welcome, thanks --Jpadfield (talk) 16:13, 10 August 2015 (UTC)

Hello,

We get the same issue, using MediaWiki 1.25.1, when we create a new account, sending temporart password by mail. This password is invalid, the user must reset the password to get a new valid temporary password !

How can we fix this ?

Jpadfield you look to have the same issue, do you have fixed it ? How ?

Regards

Frsebi 16/09/2015

No I have not fixed this, I am experimenting with turning off the email confirmation, generating and automatic email, creating a new account using the generated password, then using the API to email the new user with details of the password. --Jpadfield (talk) 11:18, 16 September 2015 (UTC)

I'm using MediaWiki 1.27.1 and I'm experiencing exactly the same problem :( Any help is more than welcome! Thanks and cheers, --Till Kraemer (talk) 10:44, 28 October 2016 (UTC)