}
/**
- * Returns whether or not the captcha element is enabled, and the admin settings fulfil its requirements.
+ * Returns whether or not the captcha element is enabled.
* @return bool
*/
function is_captcha_enabled() {
- global $CFG;
- return $this->config->recaptcha;
+ return get_config("auth/{$this->authtype}", 'recaptcha');
}
}
This files describes API changes in /auth/* - plugins,
information provided here is intended especially for developers.
+=== 3.0 ===
+
+* login_signup_form::signup_captcha_enabled() now calls is_captcha_enabled() from the current auth plugin instead of from auth_email
+
=== 2.9 ===
* Do not update user->firstaccess from any auth plugin, the complete_user_login() does it automatically.
}
/**
- * Returns whether or not the captcha element is enabled, and the admin settings fulfil its requirements.
+ * Returns whether or not the captcha element is enabled.
*
* @abstract Implement in child classes
* @return bool