From 06d3a2b2801ecaaa60a3427a70a8179164ffedb9 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期三, 16 二月 2022 16:44:38 +0800 Subject: [PATCH] Merge branch 'Phase3' of https://dev.pollex.com.tw:8443/r/pcalife/PAM into Phase3 --- pamapi/src/main/java/com/pollex/pam/security/provider/EServiceAuthenticationProvider.java | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/security/provider/EServiceAuthenticationProvider.java b/pamapi/src/main/java/com/pollex/pam/security/provider/EServiceAuthenticationProvider.java index 06c3fe0..54391f0 100644 --- a/pamapi/src/main/java/com/pollex/pam/security/provider/EServiceAuthenticationProvider.java +++ b/pamapi/src/main/java/com/pollex/pam/security/provider/EServiceAuthenticationProvider.java @@ -8,7 +8,6 @@ import com.pollex.pam.security.token.EServiceAuthenticationToken; import com.pollex.pam.service.LoginRecordService; import com.pollex.pam.service.dto.EServiceResponse; -import com.pollex.pam.service.util.HttpRequestUtil; import com.pollex.pam.web.rest.errors.EServiceErrorException; import org.apache.http.conn.ssl.NoopHostnameVerifier; import org.apache.http.conn.ssl.SSLConnectionSocketFactory; @@ -43,7 +42,7 @@ @Component public class EServiceAuthenticationProvider { - private static final String E_SERVICE_LOGIN_SUCCESS_CODE = "0"; + private static final String E_SERVICE_LOGIN_SUCCESS_CODE = "true"; private static final Logger log = LoggerFactory.getLogger(EServiceAuthenticationProvider.class); @Autowired @@ -70,7 +69,7 @@ EServiceResponse eServiceResponse = responseEntity.getBody(); log.debug("eService response = {}", eServiceResponse); - if(E_SERVICE_LOGIN_SUCCESS_CODE.equals(eServiceResponse.getCode())){ + if(E_SERVICE_LOGIN_SUCCESS_CODE.equals(eServiceResponse.getIssuccess())){ loginRecordService.saveEServiceLoginSuccessRecord(account); return getConsultantToken(account, credentials); } -- Gitblit v1.8.0