Password Confirmation for Edit Profile page

Password Confirmation to view Profile page

Hi πŸ‘‹

I am using ->profile on one of my panels and want to have password confirmation (preferably in a modal) before being able to access the Edit Profile form. Following https://v2.filamentphp.com/tricks/password-confirmation-action I have created PasswordAction and tried to add it within AdminPanelProvider

->profile(EditProfile::class)
->userMenuItems([
    'profile' => PasswordAction::make()->action('call')->label('Edit profile'),
])


which gives the following error
Filament\Panel::Filament\Panel\Concerns\{closure}(): Argument #1 ($item) must be of type Filament\Navigation\MenuItem, Filament\Actions\Action given

Any ideas if this is feasible and how to approach it?

Thanks πŸ˜ƒ
Filament
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
Was this page helpful?