From 6f394b0027019d4d014cf0b8ec13fa43e47c27c9 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期五, 24 十二月 2021 10:39:39 +0800 Subject: [PATCH] Merge branch '簡訊與email測通' --- pamapi/src/main/java/com/pollex/pam/web/rest/TestLoginResource.java | 12 ++---------- 1 files changed, 2 insertions(+), 10 deletions(-) diff --git a/pamapi/src/main/java/com/pollex/pam/web/rest/TestLoginResource.java b/pamapi/src/main/java/com/pollex/pam/web/rest/TestLoginResource.java index d4286dc..947b621 100644 --- a/pamapi/src/main/java/com/pollex/pam/web/rest/TestLoginResource.java +++ b/pamapi/src/main/java/com/pollex/pam/web/rest/TestLoginResource.java @@ -1,17 +1,11 @@ package com.pollex.pam.web.rest; -import com.fasterxml.jackson.databind.ObjectMapper; import com.pollex.pam.config.ApplicationProperties; -import com.pollex.pam.security.jwt.JWTFilter; import com.pollex.pam.security.jwt.TokenProvider; -import com.pollex.pam.security.token.EServiceAuthenticationToken; -import com.pollex.pam.security.token.OtpAuthenticationToken; -import com.pollex.pam.service.LoginService; +import com.pollex.pam.service.LoginRecordService; import com.pollex.pam.service.OtpWebService; -import com.pollex.pam.service.dto.EServiceRequest; import com.pollex.pam.service.dto.EServiceResponse; import com.pollex.pam.service.dto.OtpResponseDTO; -import com.pollex.pam.web.rest.vm.OtpAccount; import org.apache.http.conn.ssl.NoopHostnameVerifier; import org.apache.http.conn.ssl.SSLConnectionSocketFactory; import org.apache.http.impl.client.CloseableHttpClient; @@ -25,8 +19,6 @@ import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; -import org.springframework.security.core.Authentication; -import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.web.bind.annotation.*; import org.springframework.web.client.RestTemplate; import org.springframework.web.util.UriComponentsBuilder; @@ -51,7 +43,7 @@ private final static Logger log = LoggerFactory.getLogger(TestLoginResource.class); @Autowired - LoginService loginService; + LoginRecordService loginRecordService; @Autowired ApplicationProperties applicationProperty; -- Gitblit v1.8.0