Fixes for client portal authentications
This commit is contained in:
parent
a2503f0f40
commit
fe3ebc3a87
2 changed files with 6 additions and 1 deletions
|
|
@ -95,8 +95,12 @@ class PaymentController extends Controller
|
|||
|
||||
$payment_hash = PaymentHash::whereRaw('BINARY `hash`= ?', [$request->payment_hash])->first();
|
||||
|
||||
$invoice = Invoice::with('client')->find($payment_hash->fee_invoice_id);
|
||||
$client = $invoice->client->exists() ? $invoice->client : auth()->user()->client;
|
||||
|
||||
return $gateway
|
||||
->driver(auth()->user()->client)
|
||||
// ->driver(auth()->user()->client)
|
||||
->driver($client)
|
||||
->setPaymentMethod($request->input('payment_method_id'))
|
||||
->setPaymentHash($payment_hash)
|
||||
->checkRequirements()
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ class ContactKeyLogin
|
|||
{
|
||||
if (Auth::guard('contact')->check()) {
|
||||
Auth::guard('contact')->logout();
|
||||
$request->session()->invalidate();
|
||||
}
|
||||
|
||||
if ($request->segment(2) && $request->segment(2) == 'magic_link' && $request->segment(3)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue