From 10c9a82ca21b5735cdce5ca4844911cf27a774be Mon Sep 17 00:00:00 2001 From: Glenn Jacobs Date: Mon, 8 Jan 2024 14:58:46 +0000 Subject: [PATCH] Update StaffResource.php --- packages/admin/src/Filament/Resources/StaffResource.php | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/admin/src/Filament/Resources/StaffResource.php b/packages/admin/src/Filament/Resources/StaffResource.php index 8e022aa47c..902d7cd188 100644 --- a/packages/admin/src/Filament/Resources/StaffResource.php +++ b/packages/admin/src/Filament/Resources/StaffResource.php @@ -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))