diff --git a/src/main/java/com/loafle/overflow/central/module/member/service/CentralMemberTotpService.java b/src/main/java/com/loafle/overflow/central/module/member/service/CentralMemberTotpService.java index 0b8186d..79a71a2 100644 --- a/src/main/java/com/loafle/overflow/central/module/member/service/CentralMemberTotpService.java +++ b/src/main/java/com/loafle/overflow/central/module/member/service/CentralMemberTotpService.java @@ -60,7 +60,7 @@ public class CentralMemberTotpService implements MemberTotpService { public boolean checkCodeForMember(String memberEmail, String code) throws OverflowException { MemberTotp totp = this.totpDAO.findByMemberEmail(memberEmail); - if (null == totp && (totp.getSecretCode() == null || totp.getSecretCode().equals(""))) { + if (null == totp || totp.getSecretCode().equals("")) { throw new OverflowException("SignInIdNotExistException", new Throwable()); } return this.checkCode(totp.getSecretCode(), code);