File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed
Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -517,5 +517,19 @@ protected function command_clean_cache_apc()
517517 show_404 ();
518518 }
519519 }
520+
521+ /**
522+ * Check is human by recaptcha from request
523+ *
524+ * @return bool
525+ */
526+ protected function reCaptchaIsHuman ()
527+ {
528+ $ captcha = $ this ->input ->post ('g-recaptcha-response ' , true );
529+ if (!$ captcha ) {
530+ return false ;
531+ }
532+ return true ;
533+ }
520534 }
521535}
Original file line number Diff line number Diff line change @@ -517,5 +517,19 @@ protected function command_clean_cache_apc()
517517 show_404 ();
518518 }
519519 }
520+
521+ /**
522+ * Check is human by recaptcha from request
523+ *
524+ * @return bool
525+ */
526+ protected function reCaptchaIsHuman ()
527+ {
528+ $ captcha = $ this ->input ->post ('g-recaptcha-response ' , true );
529+ if (!$ captcha ) {
530+ return false ;
531+ }
532+ return true ;
533+ }
520534 }
521535}
You can’t perform that action at this time.
0 commit comments