Example #1
0
 private function getLoginCaptchaInstance()
 {
     // Captcha parameters:
     $captchaConfig = ['CaptchaId' => 'LoginCaptcha', 'UserInputId' => 'CaptchaCode', 'CaptchaConfigFilePath' => 'captcha_config/LoginCaptchaConfig.php'];
     $captcha = BotDetectCaptcha::GetCaptchaInstance($captchaConfig);
     return $captcha;
 }
 /**
  * Get captcha instance to handle for the reset password page
  *
  * @return object
  */
 private function getResetPasswordCaptchaInstance()
 {
     // Captcha parameters:
     $captchaConfig = ['CaptchaId' => 'ResetPasswordCaptcha', 'UserInputId' => 'CaptchaCode', 'CaptchaConfigFilePath' => 'captcha_config/ResetPasswordCaptchaConfig.php'];
     return BotDetectCaptcha::GetCaptchaInstance($captchaConfig);
 }
 private function getExampleCaptchaInstance()
 {
     // Captcha parameters
     $captchaConfig = ['CaptchaId' => 'ExampleCaptcha', 'UserInputId' => 'CaptchaCode', 'CaptchaConfigFilePath' => 'captcha_config/ExampleCaptchaConfig.php'];
     return BotDetectCaptcha::GetCaptchaInstance($captchaConfig);
 }