Skip to content

Commit

Permalink
Merge pull request #133 from Team-Tiki/#130-member-refactor
Browse files Browse the repository at this point in the history
[FIX] 로직수정 및 불필요한 인자 삭제
  • Loading branch information
paragon0107 authored Aug 1, 2024
2 parents 6d8d005 + 06f6152 commit 09c5cf7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/main/java/com/tiki/server/member/entity/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ public class Member extends BaseTime {
public static Member of(
String email,
String password,
String passwordChecker,
String name,
LocalDate birth,
University univ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,13 @@ private Member createMember(MemberProfileCreateRequest request) {
return Member.of(
request.email(),
passwordEncoder.encode(request.password()),
passwordEncoder.encode(request.passwordChecker()),
request.name(),
request.birth(),
request.univ());
}

private void checkPassword(String password, String passwordChecker) {
if (password.equals(passwordChecker)) {
if (!password.equals(passwordChecker)) {
throw new MemberException(UNMATCHED_PASSWORD);
}
}
Expand Down

0 comments on commit 09c5cf7

Please sign in to comment.