arranging

This commit is contained in:
insanity 2018-06-08 12:43:18 +09:00
parent 08a8dbc18b
commit 4b12e03cd3

View File

@ -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);