Skip to content

Commit

Permalink
Fix: 소셜로그인 안되던버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Taekgil99 committed Nov 30, 2022
1 parent 60b1267 commit 0c994ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ public User toEntity(PointService pointService) {
// .about("안녕하세요. " + name + "입니다.")
.build();

pointService.addCash(user, 1000000, PointType.SignUpPoint);
log.info("회원가입 포인트 지급");

return user;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ private User saveOrUpdate(OAuthAttributes attributes) {

if (user.getPassword() == null) {
user.setPassword(passwordEncoder.encode(user.getNickname()));
pointService.addCash(user, 1000000, PointType.SignUpPoint);
log.info("회원가입 포인트 지급");
}

user.encodePassword(passwordEncoder);
User save = userRepository.save(user);

log.info("saved User");
Expand Down

0 comments on commit 0c994ae

Please sign in to comment.