fixed #370
This commit is contained in:
@@ -21,11 +21,11 @@ class Login
|
||||
|
||||
// Logout if no company assigned
|
||||
if (!$company) {
|
||||
auth()->logout();
|
||||
app('App\Http\Controllers\Auth\Login')->logout();
|
||||
|
||||
flash(trans('auth.error.no_company'))->error();
|
||||
|
||||
return redirect('auth/login');
|
||||
return;
|
||||
}
|
||||
|
||||
// Set company id
|
||||
|
||||
Reference in New Issue
Block a user