fix: [barobill] 회원사 조회 시 암호화 복호화 실패 방어 처리

- show() 메서드의 has_password 체크에서 encrypted cast 복호화 실패 시 getRawOriginal()로 폴백
This commit is contained in:
김보곤
2026-02-21 14:03:06 +09:00
parent b4d737948f
commit df25fac5a8

View File

@@ -268,9 +268,13 @@ public function show(Request $request, int $id): JsonResponse
]);
}
// 비밀번호 설정 여부 추가
// 비밀번호 설정 여부 추가 (encrypted cast 복호화 실패 대비)
$memberData = $member->toArray();
$memberData['has_password'] = ! empty($member->barobill_pwd);
try {
$memberData['has_password'] = ! empty($member->barobill_pwd);
} catch (\Throwable $e) {
$memberData['has_password'] = ! empty($member->getRawOriginal('barobill_pwd'));
}
return response()->json([
'success' => true,