master
parent
ba9152bf7d
commit
469edb9b3e
|
|
@ -3,7 +3,6 @@ package com.boot.security.server.model;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
||||||
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
@ -16,8 +15,6 @@ public class SysUser extends BaseEntity<Long> {
|
||||||
|
|
||||||
private String username;
|
private String username;
|
||||||
private String password;
|
private String password;
|
||||||
@JsonIgnore
|
|
||||||
private String salt;
|
|
||||||
private String nickname;
|
private String nickname;
|
||||||
private String headImgUrl;
|
private String headImgUrl;
|
||||||
private String phone;
|
private String phone;
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ public class UserDetailsServiceImpl implements UserDetailsService {
|
||||||
throw new DisabledException("用户已作废");
|
throw new DisabledException("用户已作废");
|
||||||
}
|
}
|
||||||
|
|
||||||
Set<GrantedAuthority> authorities = new HashSet<>();
|
Set<GrantedAuthority> authorities = new HashSet<>();// TODO
|
||||||
GrantedAuthority grantedAuthority = new SimpleGrantedAuthority("rrr");
|
GrantedAuthority grantedAuthority = new SimpleGrantedAuthority("rrr");
|
||||||
authorities.add(grantedAuthority);
|
authorities.add(grantedAuthority);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue