Skip to content

Commit

Permalink
Update StaffResource.php
Browse files Browse the repository at this point in the history
  • Loading branch information
glennjacobs committed Jan 8, 2024
1 parent 2074f34 commit 10c9a82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/admin/src/Filament/Resources/StaffResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ protected static function getPasswordFormComponent(): Component
{
return Forms\Components\TextInput::make('password')
->label(__('lunarpanel::staff.form.password.label'))
->password()
->required(fn ($record) => blank($record))
->dehydrateStateUsing(fn ($state) => Hash::make($state))
->dehydrated(fn (?string $state): bool => filled($state))
Expand Down

0 comments on commit 10c9a82

Please sign in to comment.