Source of file RecaptchaProtector.php
Size: 0,809 Bytes - Last Modified: 2021-12-24T05:16:10+00:00
/var/www/docs.ssmods.com/process/src/code/RecaptchaProtector.php
1234567891011121314151617181920212223242526272829303132333435363738394041 | <?php namespace SilverStripe\Recaptcha; use SilverStripe\Control\Director; use SilverStripe\SpamProtection\SpamProtector; /** * Protecter class to handle spam protection interface * * @package recaptcha */ class RecaptchaProtector implements SpamProtector { /** * Return the Field that we will use in this protector * * @param string $name * @param string $title * @param null $value * * @return string */ public function getFormField($name = "RecaptchaField", $title = "Captcha", $value = null) { $field = new RecaptchaField($name, $title, $value); $field->useSSL = Director::is_https(); return $field; } /** * Not used by Recaptcha */ public function setFieldMapping($fieldMapping) { } } |