wzh 2 年 前
コミット
ba1be3a4e0

+ 2 - 1
ruoyi-thirduser/src/main/java/com/ruoyi/thirduser/service/ThirdUserloginService.java

@@ -57,11 +57,12 @@ public class ThirdUserloginService  {
         // 验证码校验
 //        validateCaptcha(username, code, uuid);
         // 登录前置校验
-        sysLoginService.loginPreCheck(username, password);
+
         // 用户验证
         Authentication authentication = null;
         try
         {
+            sysLoginService.loginPreCheck(username, password);
             UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username, password);
             AuthenticationContextHolder.setContext(authenticationToken);
             // 该方法会去调用UserDetailsServiceImpl.loadUserByUsername