| | |
| | | package com.jilongda.applet.security; |
| | | |
| | | import com.jilongda.applet.model.TAppUser; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.Setter; |
| | | import org.springframework.security.core.GrantedAuthority; |
| | | import org.springframework.security.core.userdetails.UserDetails; |
| | |
| | | * @Description |
| | | * @date 2020-08-20 20:36 |
| | | */ |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Data |
| | | public class SecurityUserDetails extends SecurityUserRoleResouce implements UserDetails, Serializable { |
| | | public class SecurityUserDetails extends TAppUser implements UserDetails, Serializable { |
| | | private static final long serialVersionUID = 8154896751339152731L; |
| | | @Setter |
| | | private Boolean accountNonExpired = true; |
| | |
| | | @Setter |
| | | private Boolean credentialsNonExpired = true; |
| | | @Setter |
| | | private Boolean enabled = false; |
| | | private Boolean enabled = true; |
| | | |
| | | |
| | | /** |
| | |
| | | |
| | | @Override |
| | | public String getPassword() { |
| | | return super.getPassword(); |
| | | // return super.getPassword(); |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public String getUsername() { |
| | | return super.getAccount(); |
| | | // return super.getAccount(); |
| | | return super.getOpenId(); |
| | | } |
| | | |
| | | @Override |