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:
parent
e27a52c59d
commit
3561415c51
@ -12,6 +12,7 @@
|
||||
namespace App\Events\Client;
|
||||
|
||||
use App\Models\Client;
|
||||
use App\Models\Company;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
/**
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user