계정 보안 구현 - 연속 실패 시 계정 잠금 서비스 추가
eapim-portal CI / build (push) Has been cancelled
eapim-portal Test / test (push) Has been cancelled

- 비밀번호 본인확인 연속 실패 정책 및 처리 로직 추가
- 작성 요청 빈도 제한 서비스 및 메시지 구현
- 키보드 연속 문자 검증 규칙 및 테스트 추가
This commit is contained in:
Rinjae
2026-08-25 20:24:46 +09:00
parent 80b072983f
commit b58893d098
33 changed files with 920 additions and 145 deletions
@@ -134,6 +134,14 @@
})
.then(function (res) {
if (res.status === 409) throw new Error('종료된 문의에는 댓글을 작성할 수 없습니다.');
// 작성 빈도 제한(무제한 요청 차단) — 서버가 내려준 안내 문구를 그대로 보여준다.
if (res.status === 429) {
return res.json()
.catch(function () { return {}; })
.then(function (body) {
throw new Error(body.message || '작성 빈도 제한을 초과했습니다. 잠시 후 다시 시도해 주세요.');
});
}
if (!res.ok) throw new Error('댓글 등록에 실패했습니다.');
return res.json();
})