ensureStateIsValid(); return Inertia::render('settings/TwoFactor', [ 'twoFactorEnabled' => $request->user()->hasEnabledTwoFactorAuthentication(), 'requiresConfirmation' => Features::optionEnabled(Features::twoFactorAuthentication(), 'confirm'), ]); } }