F
Filamentβ€’3mo ago
KEANUH

Try to change password name in LOGIN πŸ˜”

I need to customize my login And I overwrote my login in a new page , all works fine but the problem its just here ( in the image ) When I try to log in I get an error : if (! Filament::auth()->attempt([ Undefined array key "password" but my variable $data has the correct input : username and password the problem is the filament::auth() which for some reason still has the password field for more information I changed this : protected function getForms(): array { return [ 'form' => $this->form( $this->makeForm() ->schema([ $this->getUsernameFormComponent(), $this->getUserpasswordFormComponent(), $this->getRememberFormComponent(), ]) ->statePath('data'), ), ]; } fit de forms correctly etc...
No description
Solution:
This is not the perfect solution but it is work for me just use mutators in your Model : And the rest of the code just use the fields default password and change everything with the default input in filament...
No description
Jump to solution
2 Replies
KEANUH
KEANUHβ€’3mo ago
more information about my login page:
No description
Solution
KEANUH
KEANUHβ€’3mo ago
This is not the perfect solution but it is work for me just use mutators in your Model : And the rest of the code just use the fields default password and change everything with the default input in filament
No description