helper fix

This commit is contained in:
2019-10-12 20:25:08 -05:00
parent 6659562556
commit bf8a2781db
2 changed files with 4 additions and 2 deletions

View File

@@ -212,7 +212,6 @@ class LoginController extends Controller
'character_id' => $eve_user->getId(),
'expires_in' => $eve_user->expiresIn,
'access_token' => $eve_user->token,
'user_type' => $this->GetRole(null, $eve_user->id),
]);
return $user;
@@ -275,7 +274,7 @@ class LoginController extends Controller
$configuration->cache = NullCache::class;
//Setup the user array
$haulers = AllowedLogin::where(['login_type' => 'Haulers'])->pluck('entity_id')->toArray();
$haulers = AllowedLogin::where(['login_type' => 'Hauler'])->pluck('entity_id')->toArray();
// Instantiate a new ESI instance
$esi = new Eseye();

View File

@@ -33,6 +33,9 @@ class ContractHelper {
$configuration = Configuration::getInstance();
$configuration->cache = NullCache::class;
//Get the esi configuration from config files
$config = config('esi');
//Get the refresh token from the database
$token = $esiHelper->GetRefreshToken($config['primary']);
$this->esi = $esiHelper->SetupEsiAuthentication($token);