1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fixes for handle password

This commit is contained in:
David Bomba 2024-03-08 10:31:43 +11:00
parent ebba4d5726
commit 3197b5f05c
3 changed files with 9 additions and 3 deletions

View File

@ -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');
}

View File

@ -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',

View File

@ -1,6 +1,8 @@
<div class="grid grid-cols-12 bg-gray-50">
<div
@php
nlog($context);
@endphp
class="col-span-12 xl:col-span-6 bg-white flex flex-col items-center lg:h-screen"
>
<div class="w-full p-10 lg:mt-24 md:max-w-xl">