-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
비밀번호 잊었을 때 변경하는 기능 추가 #43
Conversation
fun execute(passwordChangeReqDto: PasswordChangeReqDto){ | ||
val emailAuth = emailAuthRepository.findById(userUtil.fetchCurrentUser().email) | ||
.orElseThrow{ throw EmailNotVerifiedException() } | ||
if(!emailAuth.authentication) | ||
throw EmailNotVerifiedException() | ||
val user = (userRepository.findByEmail(emailAuth.email) | ||
?: throw EmailNotVerifiedException()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 그냥 맨 위에 본인 User 객체 가져와서 변수로 선언해서 쓰는게 더 낫지 않음?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정했음
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
유저 존재 여부 판단하는 로직이 필요하려나?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정했음
💡 개요
📃 작업내용
🎸 기타
#42