Commit 6471c8d5866d25c1fc4366d354de22a1ea11b13f
1 parent
1737714a
修复管理后台的社交登录时,传入的用户类型不正确
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-system/yudao-module-system-impl/src/main/java/cn/iocoder/yudao/module/system/service/auth/AdminAuthServiceImpl.java
| @@ -194,7 +194,7 @@ public class AdminAuthServiceImpl implements AdminAuthService { | @@ -194,7 +194,7 @@ public class AdminAuthServiceImpl implements AdminAuthService { | ||
| 194 | @Override | 194 | @Override |
| 195 | public String socialLogin(AuthSocialLoginReqVO reqVO, String userIp, String userAgent) { | 195 | public String socialLogin(AuthSocialLoginReqVO reqVO, String userIp, String userAgent) { |
| 196 | // 使用 code 授权码,进行登录。然后,获得到绑定的用户编号 | 196 | // 使用 code 授权码,进行登录。然后,获得到绑定的用户编号 |
| 197 | - Long userId = socialUserService.getBindUserId(UserTypeEnum.MEMBER.getValue(), reqVO.getType(), | 197 | + Long userId = socialUserService.getBindUserId(UserTypeEnum.ADMIN.getValue(), reqVO.getType(), |
| 198 | reqVO.getCode(), reqVO.getState()); | 198 | reqVO.getCode(), reqVO.getState()); |
| 199 | if (userId == null) { | 199 | if (userId == null) { |
| 200 | throw exception(AUTH_THIRD_LOGIN_NOT_BIND); | 200 | throw exception(AUTH_THIRD_LOGIN_NOT_BIND); |