下标
This commit is contained in:
@@ -59,7 +59,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
|
||||
if (roleType == null){
|
||||
roleType = RoleType.NORMAL;
|
||||
}
|
||||
SimpleGrantedAuthority authority = new SimpleGrantedAuthority(roleType.getName());
|
||||
SimpleGrantedAuthority authority = new SimpleGrantedAuthority(roleType.name());
|
||||
authList.add(authority);
|
||||
//实例化UserDetails对象
|
||||
userDetails=new org.springframework.security.core.userdetails.User(s,password,
|
||||
|
||||
Reference in New Issue
Block a user