© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
12 replies
harps

Changing password error "Email already exists"

I seem to be getting this "The email address has already been taken" when changing my passwords.

I have changed my user model to allow duplicate email addresses and use another uniques field 'name' for login. Not ideal but the way the client currently works we need to do it in the short term.

Everything works and I can create accounts with the same email address and users login with unique name fine.

The issue is that on the profile page the email field is checking for uniqueness, what os the best way to override that?
Solution
just change the getEmailFormComponent() method:
protected function getEmailFormComponent(): Component
{
  return TextInput::make('email')
      ->label(__('filament-panels::pages/auth/edit-profile.form.email.label'))
      ->email()
      ->required()
      ->maxLength(255);
// drop this line ->unique(ignoreRecord: true);
}
protected function getEmailFormComponent(): Component
{
  return TextInput::make('email')
      ->label(__('filament-panels::pages/auth/edit-profile.form.email.label'))
      ->email()
      ->required()
      ->maxLength(255);
// drop this line ->unique(ignoreRecord: true);
}
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Reset password email locale
FilamentFFilament / ❓┊help
3y ago
Where to check if email exists....
FilamentFFilament / ❓┊help
2y ago
Reset password never receiving email.
FilamentFFilament / ❓┊help
2mo ago
Prevent Logout when changing Admin Password?
FilamentFFilament / ❓┊help
3y ago