jenkins-bot has submitted this change and it was merged.

Change subject: Expect camelcase status codes from action=createaccount
......................................................................


Expect camelcase status codes from action=createaccount

Followup to efcf0a3f61b5bcdf5f9f6f716fa732b6afb9336e.
Bug: 61663

Change-Id: I1c8f1b7cd8cdf74b84869d6a58e5f5ca24b62184
---
M Captcha.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Anomie: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/Captcha.php b/Captcha.php
index 2152ab5..20b2dfd 100644
--- a/Captcha.php
+++ b/Captcha.php
@@ -828,7 +828,7 @@
         * @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;

-- 
To view, visit https://gerrit.wikimedia.org/r/114484
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1c8f1b7cd8cdf74b84869d6a58e5f5ca24b62184
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ConfirmEdit
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <[email protected]>
Gerrit-Reviewer: Anomie <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to