Skip to content

Commit

Permalink
비밀번호 재설정 인증코드 시간 연장 오류 수정 (#307)
Browse files Browse the repository at this point in the history
  • Loading branch information
asp345 authored Dec 12, 2024
1 parent c7e6566 commit 79b1739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/kotlin/users/service/UserService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ class UserServiceImpl(
val user = userRepository.findByCredentialLocalIdAndActiveTrue(localId) ?: throw UserNotFoundException
val key = RESET_PASSWORD_CODE_PREFIX + user.id
checkVerificationValue(key, code)
redisTemplate.opsForValue().getAndExpire(key, Duration.ofMinutes(3)).subscribe()
redisTemplate.expire(key, Duration.ofMinutes(3)).subscribe()
}

override suspend fun getMaskedEmail(localId: String): String {
Expand Down

0 comments on commit 79b1739

Please sign in to comment.