© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
XODIN

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([ 
 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...
image.png
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
image.png
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Change Sign to Login in Admin Login
FilamentFFilament / ❓┊help
3y ago
Problem when try to reset password in production
FilamentFFilament / ❓┊help
10mo ago
Login without password
FilamentFFilament / ❓┊help
3y ago
Change login
FilamentFFilament / ❓┊help
2y ago