Skip to content

Commit 3fadec9

Browse files
fix full blank password
1 parent cd61ab0 commit 3fadec9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

app/Filament/Resources/UserResource/Pages/EditUser.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,13 @@ protected function getHeaderActions(): array
1616
Actions\DeleteAction::make(),
1717
];
1818
}
19+
20+
protected function mutateFormDataBeforeSave(array $data): array
21+
{
22+
if (! $data['password']) {
23+
unset($data['password']);
24+
}
25+
26+
return $data;
27+
}
1928
}

0 commit comments

Comments
 (0)