Fixes for edge cases around duplicate contacts in portal
This commit is contained in:
parent
8f4f1b9600
commit
0a065aefc1
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue