diff --git a/app/Http/Controllers/Settings/TwoFactorAuthenticationController.php b/app/Http/Controllers/Settings/TwoFactorAuthenticationController.php deleted file mode 100644 index 4402383..0000000 --- a/app/Http/Controllers/Settings/TwoFactorAuthenticationController.php +++ /dev/null @@ -1,37 +0,0 @@ -ensureStateIsValid(); - - return Inertia::render('settings/TwoFactor', [ - 'twoFactorEnabled' => $request->user()->hasEnabledTwoFactorAuthentication(), - 'requiresConfirmation' => Features::optionEnabled(Features::twoFactorAuthentication(), 'confirm'), - ]); - } -} diff --git a/app/Http/Requests/Settings/TwoFactorAuthenticationRequest.php b/app/Http/Requests/Settings/TwoFactorAuthenticationRequest.php index 1086eb5..8a4c428 100644 --- a/app/Http/Requests/Settings/TwoFactorAuthenticationRequest.php +++ b/app/Http/Requests/Settings/TwoFactorAuthenticationRequest.php @@ -4,21 +4,12 @@ use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; -use Laravel\Fortify\Features; use Laravel\Fortify\InteractsWithTwoFactorState; class TwoFactorAuthenticationRequest extends FormRequest { use InteractsWithTwoFactorState; - /** - * Determine if the user is authorized to make this request. - */ - public function authorize(): bool - { - return Features::enabled(Features::twoFactorAuthentication()); - } - /** * Get the validation rules that apply to the request. *