Skip to content

Commit f2ba1e0

Browse files
Merge pull request #90 from jeffersongoncalves/rever-change-getAuthIdentifierName
fix(profile): correct input field to use 'email' instead of auth identifier
2 parents 21e7c6d + f831a6d commit f2ba1e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Livewire/EditProfileForm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function mount(): void
2828

2929
$this->userClass = get_class($this->user);
3030

31-
$fields = ['name', $this->user->getAuthIdentifierName()];
31+
$fields = ['name', 'email'];
3232

3333
if (filament('filament-edit-profile')->getShouldShowAvatarForm()) {
3434
$fields[] = config('filament-edit-profile.avatar_column', 'avatar_url');
@@ -57,7 +57,7 @@ public function form(Form $form): Form
5757
TextInput::make('name')
5858
->label(__('filament-edit-profile::default.name'))
5959
->required(),
60-
TextInput::make($this->user->getAuthIdentifierName())
60+
TextInput::make('email')
6161
->label(__('filament-edit-profile::default.email'))
6262
->email()
6363
->required()

0 commit comments

Comments
 (0)