Beispiel #1
0
 /**
  * Check if the reCAPTCHA is required
  *
  * @return bool Returns true if the captcha is required
  */
 public function isRequired()
 {
     if (!$this->config->get('larapress.settings.captcha.active')) {
         return false;
     }
     $timer = $this->config->get('larapress.settings.captcha.timer');
     if ($this->helpers->getCurrentTimeDifference($this->session->get('captcha.passed.time', 0), 'm') >= $timer) {
         return true;
     }
     return false;
 }
Beispiel #2
0
 /**
  * Missing Method
  *
  * Abort the app and return a 404 response
  *
  * @param array $parameters
  * @return \Illuminate\Http\Response
  */
 public function missingMethod($parameters = array())
 {
     return $this->helpers->force404();
 }