One Hat Cyber Team
Your IP :
3.135.249.190
Server IP :
192.145.235.60
Server :
Linux ngx365.inmotionhosting.com 5.14.0-427.33.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 30 09:45:56 EDT 2024 x86_64
Server Software :
Apache
PHP Version :
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
centos12
/
www
/
centosuit
/
app
/
Actions
/
Fortify
/
Edit File:
RedirectIfTwoFactorConfirmed.php
<?php namespace App\Actions\Fortify; use App\Events\TwoFactorCodeEvent; use Laravel\Fortify\TwoFactorAuthenticatable; class RedirectIfTwoFactorConfirmed extends RedirectIfTwoFactorAuthenticatable { public function handle($request, $next) { $user = $this->validateCredentials($request); if (optional($user)->two_factor_confirmed && ($user->two_fa_verify_via == 'both' || $user->two_fa_verify_via == 'google_authenticator') && in_array(TwoFactorAuthenticatable::class, class_uses_recursive($user))) { return $this->twoFactorChallengeResponse($request, $user); } if (optional($user)->two_factor_email_confirmed && ($user->two_fa_verify_via == 'email' || $user->two_fa_verify_via == 'both') && in_array(TwoFactorAuthenticatable::class, class_uses_recursive($user))) { // Send otp to user from here $user->generateTwoFactorCode(); event(new TwoFactorCodeEvent($user->user)); return $this->twoFactorChallengeResponse($request, $user); } return $next($request); } }
Simpan