1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for edge cases around duplicate contacts in portal

This commit is contained in:
David Bomba 2021-12-20 11:20:22 +11:00
parent 8f4f1b9600
commit 0a065aefc1

View File

@ -52,7 +52,7 @@ class CheckClientExistence
return redirect()->route('client.login');
}
if (count($multiple_contacts) == 1) {
if (count($multiple_contacts) == 1 && !Auth::guard('contact')->check()) {
Auth::guard('contact')->loginUsingId($multiple_contacts[0]->id, true);
}