Kaynağa Gözat

解决缺陷 有移动运营门户的账号,输错密码登录失败,有两次失败记录。平台自建的账号登录失败,只有一次记录

zhulu 8 ay önce
ebeveyn
işleme
947f7999d0

+ 3 - 1
soc-auth/src/main/java/com/xunmei/auth/service/SysLoginService.java

@@ -101,7 +101,9 @@ public class SysLoginService {
                 String token = fjnxLoginService.webLoginByPass(login);
                 // 如果统一门户验证失败, 再走本系统默认密码验证
                 if (StringUtils.isEmpty(token)) {
-                    passwordService.validate(user, password, platformType);
+                    // token 为空有多种原因,在catch中也有验证,都放在 catch中验证,如果验证失败会验证2次
+                    throw new ServiceException("统一门户验证失败,返回Token为空");
+                    //passwordService.validate(user, password, platformType);
                 }
             }
             // 如果统一门户验证失败, 再走本系统默认密码验证