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:
parent
8f4f1b9600
commit
0a065aefc1
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user