One Hat Cyber Team
Your IP :
18.221.42.212
Server IP :
50.28.103.30
Server :
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software :
nginx/1.24.0
PHP Version :
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
ef.electronharmony.com
/
app
/
Rules
/
View File Name :
Captcha.php
<?php namespace App\Rules; use Illuminate\Contracts\Validation\Rule; use ReCaptcha\ReCaptcha; use App\Models\GoogleRecaptcha; class Captcha implements Rule { public function __construct() { // } public function passes($attribute, $value) { $recaptchaSetting = GoogleRecaptcha::first(); $recaptcha=new ReCaptcha($recaptchaSetting->secret_key); $response=$recaptcha->verify($value, $_SERVER['REMOTE_ADDR']); return $response->isSuccess(); } /** * Get the validation error message. * * @return string */ public function message() { return 'Please complete the recaptcha to submit the form'; } }