|
|
@@ -44,6 +44,6 @@ class LoginController
|
|
|
];
|
|
|
$jwt = JWT::encode($payload, $_ENV['JWT_SECRET'], 'HS256');
|
|
|
|
|
|
- return ResponseLib::sendOk(['token' => $jwt, 'user_id' => $user['user_id'], 'role_id' => $user['role_id']]);
|
|
|
+ return ResponseLib::sendOk(['token' => $jwt, 'user_id' => $user['user_id'], 'role_id' => $user['role_id'], 'company_id' => $user['company_id']]);
|
|
|
}
|
|
|
}
|