From 022a36c394b86ae21acee62d904baea0b2d29215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 7 Mar 2024 18:55:36 +0100 Subject: [PATCH] Fixes for password confrim --- .../BillingPortal/Authentication/ClientRegisterService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Livewire/BillingPortal/Authentication/ClientRegisterService.php b/app/Livewire/BillingPortal/Authentication/ClientRegisterService.php index f24b0b7a4bcf..76c1162c4d39 100644 --- a/app/Livewire/BillingPortal/Authentication/ClientRegisterService.php +++ b/app/Livewire/BillingPortal/Authentication/ClientRegisterService.php @@ -45,7 +45,7 @@ class ClientRegisterService $rules[$field] = array_merge($rules[$field], ['email:rfc,dns', 'max:191', Rule::unique('client_contacts')->where('company_id', $this->company->id)]); } - if ($field === 'current_password') { + if ($field === 'current_password' || $field === 'password') { $rules[$field] = array_merge($rules[$field], ['string', 'min:6', 'confirmed']); } }