비밀번호 초기화 페이지

This commit is contained in:
현성필
2024-05-27 11:15:45 +09:00
parent 9b53b9272c
commit c79b4c5535
13 changed files with 772 additions and 153 deletions
@@ -62,7 +62,15 @@ public class StaffUserService {
staffUserRepository.save(user);
}
public void updatePassword(String id, String newPassword) {
StaffUser user = staffUserRepository.findById(id).orElseThrow(() -> new UserNotFoundException(USER_NOT_FOUND_MESSAGE));
user.setUserSecurity(newPassword);
user.setLockAt(EnabledStatus.N);
user.setLockCnt(0);
user.setLastLockDate(null);
staffUserRepository.save(user);
}
}