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

Set Client on webhook return Checkout.com

This commit is contained in:
David Bomba 2023-09-12 10:30:42 +10:00
parent a0a6054faa
commit 6c2ab8fff5

View File

@ -447,6 +447,7 @@ class CheckoutComPaymentDriver extends BaseDriver
//11-08-2022 check the user is authenticated
if (!Auth::guard('contact')->check()) {
$client = $request->getClient();
$this->client = $client;
auth()->guard('contact')->loginUsingId($client->contacts()->first()->id, true);
}