Skip to content

Commit 9ecc2b1

Browse files
committed
2/7 회원 가입 시, 전화번호 중복 오류 수정
1 parent 346ee67 commit 9ecc2b1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/main/java/com/demo/KIDING/global/jwt/JwtFilter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
2929

3030
// 1. Request Header에서 JWT 토큰 추출
3131
String token = resolveToken((HttpServletRequest) request);
32-
// System.out.println("===토큰 확인====");
33-
// System.out.println(token);
3432

3533
// 2. validateToken으로 토큰 유효성 검사
3634
if (token != null && jwtProvider.validateToken(token)) {

src/main/java/com/demo/KIDING/service/UserService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ public UserDtoRes signup(SignUpReq signUpReq) throws BaseException {
5656
throw new BaseException(POST_USERS_EXISTS_NICKNAME);
5757
}
5858

59-
if (userRepository.existsByPhone(signUpReq.getPhone())) {
60-
throw new BaseException(POST_USERS_EXISTS_PHONE);
61-
}
59+
// if (userRepository.existsByPhone(signUpReq.getPhone())) {
60+
// throw new BaseException(POST_USERS_EXISTS_PHONE);
61+
// }
6262

6363
try {
6464
String encodedPwd = passwordEncoder.encode(signUpReq.getPassword());

0 commit comments

Comments
 (0)