Return error message when dealing with clients who have been deleted
This commit is contained in:
parent
978605495b
commit
8faa687ae4
1 changed files with 2 additions and 1 deletions
|
|
@ -46,10 +46,11 @@ class CheckClientExistence
|
|||
})
|
||||
->get();
|
||||
|
||||
/* This catches deleted clients who don't have access to the app. We automatically log them out here*/
|
||||
if (count($multiple_contacts) == 0) {
|
||||
Auth::logout();
|
||||
|
||||
return redirect()->route('client.login');
|
||||
return redirect()->route('client.login')->with('message', 'Login disabled');
|
||||
}
|
||||
|
||||
if (count($multiple_contacts) == 1 && !Auth::guard('contact')->check()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue