MDL-65754 auth_email: Remove unused v1 recaptcha
authorMathew May <mathewm@hotmail.co.nz>
Wed, 12 Jun 2019 01:35:54 +0000 (09:35 +0800)
committerMathew May <mathewm@hotmail.co.nz>
Wed, 12 Jun 2019 01:35:54 +0000 (09:35 +0800)
auth/email/classes/external.php

index a7b9bf2..34e9540 100644 (file)
@@ -117,10 +117,7 @@ class auth_email_external extends external_api {
 
         if (signup_captcha_enabled()) {
             // With reCAPTCHA v2 the captcha will be rendered by the mobile client using just the publickey.
-            // For now include placeholders for the v1 paramaters to support older mobile app versions.
             $result['recaptchapublickey'] = $CFG->recaptchapublickey;
-            list($result['recaptchachallengehash'], $result['recaptchachallengeimage'], $result['recaptchachallengejs']) =
-                array('', '', '');
         }
 
         $result['warnings'] = array();