From 3197b5f05c573f83a0d8c79b4c2e56d9df6bfba5 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 8 Mar 2024 10:31:43 +1100 Subject: [PATCH] Fixes for handle password --- app/Livewire/BillingPortal/Authentication/Login.php | 4 +++- app/Livewire/BillingPortal/Submit.php | 4 +++- resources/views/billing-portal/v3/purchase.blade.php | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/Livewire/BillingPortal/Authentication/Login.php b/app/Livewire/BillingPortal/Authentication/Login.php index 06090998c8ba..3c24baae9562 100644 --- a/app/Livewire/BillingPortal/Authentication/Login.php +++ b/app/Livewire/BillingPortal/Authentication/Login.php @@ -110,7 +110,7 @@ class Login extends Component public function handleOtp() { $this->validate([ - 'otp' => 'required|numeric|digits:6', + 'otp' => 'required|numeric|digits:6 ', 'email' => 'required|bail|email:rfc|exists:client_contacts,email', ]); @@ -151,6 +151,8 @@ class Login extends Component ]); if ($attempt) { + + $this->dispatch('purchase.context', property: 'contact', value: auth()->guard('contact')->user()); $this->dispatch('purchase.next'); } diff --git a/app/Livewire/BillingPortal/Submit.php b/app/Livewire/BillingPortal/Submit.php index 4779164377bc..a1324f96a3c1 100644 --- a/app/Livewire/BillingPortal/Submit.php +++ b/app/Livewire/BillingPortal/Submit.php @@ -16,7 +16,6 @@ use Livewire\Component; use Livewire\Attributes\Lazy; use App\Services\ClientPortal\InstantPayment; -#[Lazy] class Submit extends Component { public array $context; @@ -45,6 +44,9 @@ class Submit extends Component // ]); // return redirect((new InstantPayment($request))->run()); + // dd($this->context); + + nlog($this->context); $this->dispatch( 'purchase.submit', diff --git a/resources/views/billing-portal/v3/purchase.blade.php b/resources/views/billing-portal/v3/purchase.blade.php index 190cb9a642a7..8692c2b4ff21 100644 --- a/resources/views/billing-portal/v3/purchase.blade.php +++ b/resources/views/billing-portal/v3/purchase.blade.php @@ -1,6 +1,8 @@