Added account creation API.
authorTyler Romeo <tylerromeo@gmail.com>
Wed, 8 Aug 2012 13:58:47 +0000 (09:58 -0400)
committerMatmaRex <matma.rex@gmail.com>
Fri, 11 Jan 2013 00:00:49 +0000 (01:00 +0100)
commit88d87b00cddbc98a959291df1f4eae13734fd835
tree1ba13c8aec0fc251e6924dc5785b3a9b9a988127
parentd2feb4e48919641c59ca79c3224b94ec8121ad40
Added account creation API.

Created new API action "createaccount" that
allows access to account creation. Takes
username, password, email, realname, token,
and optionally mailpassword and reason.

Errors are given in an errors array. Note
there is no way to natively handle CAPTCHAs
as there is no uniform implementation of
presenting CAPTCHA links to user. Right now
the best an extension can do is return an
error in AbortNewAccount, which will then
be displayed as an error in the Api result.

Change-Id: Ibdb1e50d434fb857683e1e4ff5a4a5a91c6b7c3a
RELEASE-NOTES-1.21
includes/AutoLoader.php
includes/api/ApiCreateAccount.php [new file with mode: 0644]
includes/api/ApiMain.php
tests/phpunit/includes/api/ApiAccountCreationTest.php [new file with mode: 0644]