523096025 6 月之前
父節點
當前提交
4ae7e14468

+ 1 - 1
snowy-plugin/snowy-plugin-auth/src/main/java/vip/xiaonuo/auth/modular/login/service/impl/AuthServiceImpl.java

@@ -244,7 +244,7 @@ public class AuthServiceImpl implements AuthService {
             if(ObjectUtil.isEmpty(saBaseLoginUser)) {
                 throw new CommonException(AuthExceptionEnum.ACCOUNT_ERROR.getValue());
             }
-            if (!saBaseLoginUser.getAccountType().equals(authAccountPasswordLoginParam.getAccountType())){
+            if (authAccountPasswordLoginParam.getAccountType()!= 0 && !saBaseLoginUser.getAccountType().equals(authAccountPasswordLoginParam.getAccountType())){
                 throw new CommonException("账号类型不匹配");
             }
             if (!saBaseLoginUser.getPassword().equals(passwordHash)) {