createaccount api action didn't handle no token and no cookie
authorBrian Wolff <bawolff+wn@gmail.com>
Sat, 9 Mar 2013 08:38:02 +0000 (04:38 -0400)
committerBrian Wolff <bawolff+wn@gmail.com>
Sat, 9 Mar 2013 08:38:02 +0000 (04:38 -0400)
commit8e02f6abe99af691753091923c5fdbc05105ed73
tree0d1193a5b9fa70fbe36cda258c54078af1cf416e
parent79881e4e711476818e4917dfa3b73364f057fc6c
createaccount api action didn't handle no token and no cookie

If you made a request to action=createaccount and this was
the first time (so no account creation token had yet been
generated for you) a "nocookiesfornew" error was returned.

This is incorrect, what is supposed to happen in that
case is the api returns what token to use. This is
how users are supposed to request tokens, so the
issue is very confusing.

No release notes since this module was introduced in
this version.

Also removed sessionfailure from possible errors,
as it isn't one (that status triggers the needtoken
result).

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