|
|
|
@ -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; |
|
|
|
|