feat: Update ProfileController to include two-factor authentication settings

This commit is contained in:
Víctor Falcón 2025-11-26 12:14:39 +01:00
parent 024007a901
commit e21c9cc3a8
1 changed files with 3 additions and 1 deletions

View File

@ -32,9 +32,11 @@ class ProfileController extends Controller
*/
public function edit(Request $request): Response
{
return Inertia::render('settings/profile', [
return Inertia::render('settings/account', [
'mustVerifyEmail' => $request->user() instanceof MustVerifyEmail,
'status' => $request->session()->get('status'),
'twoFactorEnabled' => $request->user()->hasEnabledTwoFactorAuthentication(),
'requiresConfirmation' => Features::optionEnabled(Features::twoFactorAuthentication(), 'confirm'),
]);
}