Password change error

This commit is contained in:
JonatanRek 2024-08-09 09:17:23 +02:00
parent 558d49a986
commit 2d5cb8cdc6

View File

@ -23,6 +23,7 @@ public function rules(): array
{ {
return [ return [
'email' => ['sometimes', 'string', 'email', 'max:255', 'unique:users'], 'email' => ['sometimes', 'string', 'email', 'max:255', 'unique:users'],
'password' => ['sometimes', 'nullable', 'string'],
'newPassword' => ['sometimes', 'nullable', 'string', 'min:8', 'confirmed'], 'newPassword' => ['sometimes', 'nullable', 'string', 'min:8', 'confirmed'],
]; ];
} }