Handle certain errors in action=createaccount api module
authorBrian Wolff <bawolff+wn@gmail.com>
Sat, 9 Mar 2013 10:40:13 +0000 (06:40 -0400)
committerBrian Wolff <bawolff+wn@gmail.com>
Tue, 12 Mar 2013 21:24:00 +0000 (18:24 -0300)
commitc1378f5645234f066ca72de34f835381d66a7cf9
tree02a3d8c7e15d874dd281037b623c1ff966815eb9
parentf9f32542f1214db0642726c9a2cdbfef3d643a77
Handle certain errors in action=createaccount api module

Certain errors (user blocked, user doesn't have permission)
were causing uncaught exceptions to be thrown in this api module.
Try to check for those cases first. Also added some errors
to the possible error list.

Change-Id: Id86984ade23a818317b942de3e9cf0ccdb43fba7
includes/api/ApiCreateAccount.php