Browse Source

Merge pull request 'update response appConfig' (#40) from Dev-Farhan into staging

Reviewed-on: ibnu/generic-ospro-backend#40
pull/1/head
farhantock 11 months ago
parent
commit
220442a7fd
  1. 8
      app/Http/Controllers/AuthController.php

8
app/Http/Controllers/AuthController.php

@ -61,6 +61,14 @@ class AuthController extends Controller
$dataRole = Role::find($user->role_id);
$dataHierarchy = $this->getDataHierarchy($user->divisi_id, $user->id);
$configApp = Company::where('id', $user->company_id)->first();
if ($configApp) {
$logoLogin = json_decode($configApp->logo_login, true);
$favicon = json_decode($configApp->favicon_image, true);
$logoHeader = json_decode($configApp->logo_header, true);
$configApp->logo_login = $logoLogin;
$configApp->favicon_image = $favicon;
$configApp->logo_header = $logoHeader;
}
if ($configApp)
$user->configApp = $configApp;

Loading…
Cancel
Save