Skip to content

Commit

Permalink
Merge pull request #87 from BaeJunH0/refactor/littleRefactoring
Browse files Browse the repository at this point in the history
[Refactor]: 변경점 반영 및 버그 수정
  • Loading branch information
BaeJunH0 authored Jan 1, 2025
2 parents 5af94c8 + 0e80f83 commit 247e7fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ public class MemberService {
public boolean memberCheck(MemberCommand memberCommand){
if(isExistMember(memberCommand.nickname())){
Member savedMember = memberRepository.findByNickname(memberCommand.nickname());
Member checkMember = memberRepository.save(Member.of(
Member checkMember = Member.of(
memberCommand.nickname(), memberCommand.password(), memberCommand.employed()
));
);

return savedMember.passCheck(checkMember.getPassword());
}
Expand Down Expand Up @@ -57,9 +57,9 @@ public void updateEmployed(String nickname) {
public boolean adminCheck(MemberCommand memberCommand){
if(!isNotAdminMember(memberCommand.nickname())){
Member savedMember = memberRepository.findByNickname(memberCommand.nickname());
Member checkMember = memberRepository.save(Member.of(
Member checkMember = Member.of(
memberCommand.nickname(), memberCommand.password(), memberCommand.employed()
));
);

return savedMember.passCheck(checkMember.getPassword());
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/js/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $(document).ready(function() {

$.ajax({
type : "POST",
url : "/auth/adminLogin",
url : "/members/login",
contentType: "application/json",
datatype : "json",
data : JSON.stringify(user),
Expand Down

0 comments on commit 247e7fc

Please sign in to comment.