提交 d99c1179 编写于 作者: xignzi006's avatar xignzi006 🇨🇳

更新businesscentral-util/src/main/java/cn/ibizlab/businesscentral/util/service/IBZUAAUserService.java

上级 6ac16611
...@@ -29,9 +29,9 @@ public class IBZUAAUserService implements AuthenticationUserService{ ...@@ -29,9 +29,9 @@ public class IBZUAAUserService implements AuthenticationUserService{
public AuthenticationUser loadUserByUsername(String username) { public AuthenticationUser loadUserByUsername(String username) {
AuthenticationUser user=uaaFeignClient.loginByUsername(username); AuthenticationUser user=uaaFeignClient.loginByUsername(username);
user.setAuthorities(AuthorityUtils.createAuthorityList("ROLE_SUPERADMIN"));
if(user==null) if(user==null)
throw new BadRequestAlertException("登录失败","IBZUAAUser",username); throw new BadRequestAlertException("登录失败","IBZUAAUser",username);
user.setAuthorities(AuthorityUtils.createAuthorityList("ROLE_SUPERADMIN"));
return user; return user;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册