Password field in editing view

How can I prevent that password field gets updated to empty when editing a user resource record? I would like to have the password only updated if a new value gets typed in. Also it would be better if it wouldn't appear empty. How should this be done? Thank you!
6 Replies
moaaz_m_f
moaaz_m_f2y ago
you can just hide it.
Forms\Components\TextInput::make('password')
->password()
->required()
->hiddenOn('edit'),
Forms\Components\TextInput::make('password')
->password()
->required()
->hiddenOn('edit'),
Prodex
ProdexOP2y ago
because it's a view for administrators who also should be able to change the password of the user
Dan Harrin
Dan Harrin2y ago
Filament
Hashing password fields and handling password updates by Dan Harrin...
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
Dan Harrin
Dan Harrin2y ago
everything is in that article
Prodex
ProdexOP2y ago
Nice, thank you! Is it somehow possible to still show some "fake" password characters so it's not empty?
Dennis Koch
Dennis Koch2y ago
Maybe as a placeholder?
Want results from more Discord servers?
Add your server