From 4b12e03cd3c58d556ad794229a73bff0ffb4feed Mon Sep 17 00:00:00 2001 From: insanity Date: Fri, 8 Jun 2018 12:43:18 +0900 Subject: [PATCH] arranging --- .../central/module/member/service/CentralMemberTotpService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);