-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(#30): Google OAuth를 이용한 회원가입 시 에러 해결
- Builder에서 password를 정하지 않아도 자동으로 password에 null이 들어가면서 PasswordUtil.encode(null) 이 호출되던 문제를 해결했어요.
- Loading branch information
Showing
3 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,18 @@ | |
public class UserFixture { | ||
|
||
public static User createUser() { | ||
return new User("[email protected]", "김밤돌", Authority.USER); | ||
return User.builder() | ||
.email("[email protected]") | ||
.name("김밤돌") | ||
.authority(Authority.USER) | ||
.build(); | ||
} | ||
|
||
public static User createAdmin() { | ||
return new User("[email protected]", "어드민", Authority.ADMIN); | ||
return User.builder() | ||
.email("[email protected]") | ||
.name("어드민") | ||
.authority(Authority.ADMIN) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters