Skip to content

Commit e3f508b

Browse files
committed
🐛 fix: 닉네임 수정 로직에 닉네임 관련 예외처리 추가
1 parent 20be69d commit e3f508b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

backend/src/main/java/io/f1/backend/domain/user/app/UserService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ public void deleteUser(Long userId) {
9898

9999
@Transactional
100100
public void updateNickname(Long userId, String newNickname, HttpSession session) {
101+
checkNickname(newNickname);
102+
101103
User user = initNickname(userId, newNickname);
102104
session.setAttribute(USER, AuthenticationUser.from(user));
103105
SecurityUtils.setAuthentication(user);

0 commit comments

Comments
 (0)