Browse Source

update response appConfig

pull/1/head
farhantock 10 months ago
parent
commit
0884009bdd
  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