Browse Source

为guest用户绑定tenantId

test
smallchill 4 years ago
parent
commit
e47c450843
  1. 1
      blade-service/blade-user/src/main/java/org/springblade/system/user/service/impl/UserServiceImpl.java

1
blade-service/blade-user/src/main/java/org/springblade/system/user/service/impl/UserServiceImpl.java

@ -189,6 +189,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implement
} }
User user = new User(); User user = new User();
user.setAccount(userOauth.getUsername()); user.setAccount(userOauth.getUsername());
user.setTenantId(userOauth.getTenantId());
userInfo.setUser(user); userInfo.setUser(user);
userInfo.setRoles(Collections.singletonList(GUEST_NAME)); userInfo.setRoles(Collections.singletonList(GUEST_NAME));
} }

Loading…
Cancel
Save