Example #1
0
 public function getHtml()
 {
     $options = ['securimage_path' => $this->config['securimage.securimage_path'], 'audio_icon_url' => $this->config['securimage.audio_icon_url'], 'loading_icon_url' => $this->config['securimage.loading_icon_url'], 'refresh_icon_url' => $this->config['securimage.refresh_icon_url'], 'show_image_url' => route('securimage'), 'audio_play_url' => route('securimage.audio'), 'show_text_input' => $this->config['securimage.show_text_input'], 'input_id' => 'captcha'];
     return parent::getCaptchaHtml($options);
 }
 /**
  * Check whether the given code is correct.
  */
 public function check(Request $request)
 {
     $result = $this->securimage->checkOnly($request->captcha);
     return ['valid' => $result];
 }