Skip to content

Commit

Permalink
fix: 테스트용 이메일 키 수정 #79
Browse files Browse the repository at this point in the history
  • Loading branch information
wlsh44 committed Dec 22, 2022
1 parent 7b3fd07 commit abf1150
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ public User login(LoginDto dto) {

private void validateAuthorizedUser(User user) {
if (!user.isAuthorizedUser()) {
// String emailAuthKey = emailAuthSender.sendAuthMail(user);
String emailAuthKey = "123123";
String emailAuthKey = emailAuthSender.sendAuthMail(user);
user.setEmailAuthKey(emailAuthKey);
throw new NotAuthorizedException();
}
Expand Down Expand Up @@ -83,8 +82,7 @@ public void signUp(SignUpRequestDto dto) {
String encodedPassword = encodePassword(dto.getPassword());
User user = toUserEntity(dto, encodedPassword, profile);

// String emailAuthKey = emailAuthSender.sendAuthMail(user);
String emailAuthKey = "123123";
String emailAuthKey = emailAuthSender.sendAuthMail(user);

User saveUser = userRepository.save(user);
saveUser.setEmailAuthKey(emailAuthKey);
Expand Down

0 comments on commit abf1150

Please sign in to comment.