Skip to content

Commit

Permalink
Password is '' after editing user. (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io authored Oct 26, 2024
2 parents 12464ad + 76b1d98 commit 60c8f86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Resources/UserResource/Form/Components/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public static function make(): Forms\Components\TextInput
->revealable(filament()->arePasswordsRevealable())
->required(fn ($record) => ! $record)
->rule(\Illuminate\Validation\Rules\Password::default())
->dehydrated(fn ($state) => filled($state))
->dehydrateStateUsing(fn ($state) => Hash::make($state))
->same('passwordConfirmation')
->validationAttribute(__('filament-panels::pages/auth/register.form.password.validation_attribute'));
Expand Down

0 comments on commit 60c8f86

Please sign in to comment.