From 2d5cb8cdc6ea7c4f7d28cf8eac8bf49759df720f Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Fri, 9 Aug 2024 09:17:23 +0200 Subject: [PATCH] Password change error --- app/Http/Requests/Auth/UpdateUserRequest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Requests/Auth/UpdateUserRequest.php b/app/Http/Requests/Auth/UpdateUserRequest.php index 4881829..d212f7b 100644 --- a/app/Http/Requests/Auth/UpdateUserRequest.php +++ b/app/Http/Requests/Auth/UpdateUserRequest.php @@ -23,6 +23,7 @@ public function rules(): array { return [ 'email' => ['sometimes', 'string', 'email', 'max:255', 'unique:users'], + 'password' => ['sometimes', 'nullable', 'string'], 'newPassword' => ['sometimes', 'nullable', 'string', 'min:8', 'confirmed'], ]; }