Expect camelcase status codes from action=createaccount

Followup to efcf0a3f61b5bcdf5f9f6f716fa732b6afb9336e.
Bug: 61663

Change-Id: I1c8f1b7cd8cdf74b84869d6a58e5f5ca24b62184
This commit is contained in:
YuviPanda 2014-02-20 21:26:08 +05:30
parent 22e9a55a65
commit bfcd41732d

View file

@ -828,7 +828,7 @@ class SimpleCaptcha {
* @return hook return value
*/
function addNewAccountApiResult( $apiModule, $loginPage, &$result ) {
if ( $result['result'] !== 'success' && $this->needCreateAccountCaptcha() ) {
if ( $result['result'] !== 'Success' && $this->needCreateAccountCaptcha() ) {
$this->addCaptchaAPI( $result );
}
return true;