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

fixes for eventS

This commit is contained in:
David Bomba 2020-06-30 10:06:30 +10:00
parent e27a52c59d
commit 3561415c51
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
namespace App\Events\Client;
use App\Models\Client;
use App\Models\Company;
use Illuminate\Queue\SerializesModels;
/**

View File

@ -67,7 +67,7 @@ class TokenAuth
//stateless, don't remember the user.
auth()->login($user, false);
event(new UserLoggedIn($user));
event(new UserLoggedIn($user, $company_token->company));
} else {
$error = [
'message' => 'Invalid token',