ing
This commit is contained in:
parent
5f52fc9bf2
commit
5e937bef6f
2
pom.xml
2
pom.xml
|
@ -50,7 +50,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.loafle.overflow</groupId>
|
<groupId>com.loafle.overflow</groupId>
|
||||||
<artifactId>commons-java</artifactId>
|
<artifactId>commons-java</artifactId>
|
||||||
<version>1.0.86-SNAPSHOT</version>
|
<version>1.0.87-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -61,7 +61,7 @@ public class CentralMemberService implements MemberService {
|
||||||
throw new OverflowException("EmailNotConfirmedException()", new Throwable());
|
throw new OverflowException("EmailNotConfirmedException()", new Throwable());
|
||||||
}
|
}
|
||||||
|
|
||||||
Boolean match = passwordEncoder.matches(signinPw, m.getPassword());
|
Boolean match = passwordEncoder.matches(signinPw, m.getPw());
|
||||||
if (!match) {
|
if (!match) {
|
||||||
if (m.getSigninFailCount() > 10) {
|
if (m.getSigninFailCount() > 10) {
|
||||||
throw new OverflowException("SigninOverFailedException()", new Throwable());
|
throw new OverflowException("SigninOverFailedException()", new Throwable());
|
||||||
|
@ -97,7 +97,7 @@ public class CentralMemberService implements MemberService {
|
||||||
// "special character, lowercase letter, and number, " +
|
// "special character, lowercase letter, and number, " +
|
||||||
// "and must be at least 6 characters long.");
|
// "and must be at least 6 characters long.");
|
||||||
}
|
}
|
||||||
member.setPassword(passwordEncoder.encode(password));
|
member.setPw(passwordEncoder.encode(password));
|
||||||
|
|
||||||
if (member.getMetaMemberStatus() == null) {
|
if (member.getMetaMemberStatus() == null) {
|
||||||
member.setMetaMemberStatus(MetaMemberStatus.Enum.NOAUTH.to());
|
member.setMetaMemberStatus(MetaMemberStatus.Enum.NOAUTH.to());
|
||||||
|
@ -192,7 +192,7 @@ public class CentralMemberService implements MemberService {
|
||||||
// "special character, lowercase letter, and number, " +
|
// "special character, lowercase letter, and number, " +
|
||||||
// "and must be at least 6 characters long.");
|
// "and must be at least 6 characters long.");
|
||||||
}
|
}
|
||||||
member.setPassword(passwordEncoder.encode(password));
|
member.setPw(passwordEncoder.encode(password));
|
||||||
|
|
||||||
return this.modify(member);
|
return this.modify(member);
|
||||||
}
|
}
|
||||||
|
@ -230,12 +230,12 @@ public class CentralMemberService implements MemberService {
|
||||||
// "and must be at least 6 characters long.");
|
// "and must be at least 6 characters long.");
|
||||||
}
|
}
|
||||||
|
|
||||||
Boolean match = passwordEncoder.matches(member.getPassword(), preMember.getPassword());
|
Boolean match = passwordEncoder.matches(member.getPw(), preMember.getPw());
|
||||||
if (!match) {
|
if (!match) {
|
||||||
member.setPassword(passwordEncoder.encode(password));
|
member.setPw(passwordEncoder.encode(password));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
member.setPassword(preMember.getPassword());
|
member.setPw(preMember.getPw());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (member.getMetaMemberStatus() == null || member.getMetaMemberStatus().getId() <= 0) {
|
if (member.getMetaMemberStatus() == null || member.getMetaMemberStatus().getId() <= 0) {
|
||||||
|
@ -253,7 +253,7 @@ public class CentralMemberService implements MemberService {
|
||||||
Member preMember = this.memberDAO.findByEmail(signinId);
|
Member preMember = this.memberDAO.findByEmail(signinId);
|
||||||
|
|
||||||
String encodePw = passwordEncoder.encode(signinPw);
|
String encodePw = passwordEncoder.encode(signinPw);
|
||||||
Boolean match = passwordEncoder.matches(encodePw, preMember.getPassword());
|
Boolean match = passwordEncoder.matches(encodePw, preMember.getPw());
|
||||||
|
|
||||||
if (!match) {
|
if (!match) {
|
||||||
throw new OverflowException("SignInPwNotMatchException", new Throwable());
|
throw new OverflowException("SignInPwNotMatchException", new Throwable());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user