feat: [로그인] 사용자 정보에 department_id 추가 반환

- getUserInfoForLogin에서 department_id도 함께 반환

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
유병철
2026-03-10 14:07:16 +09:00
parent 6d1925fcd1
commit 4e192d1c00

View File

@@ -231,6 +231,7 @@ public static function getUserInfoForLogin(int $userId): array
$dept = DB::table('departments')->where('id', $profile->department_id)->first();
if ($dept) {
$userInfo['department'] = $dept->name;
$userInfo['department_id'] = $dept->id;
}
}