Commit 19810b28 authored by fangxinjiang's avatar fangxinjiang

用户信息新增 ldap 机构信息

parent 676ea1d3
......@@ -78,8 +78,8 @@ public class YifuUser extends User {
public YifuUser(String id, Long deptId,String deptName, String username, String nickname,String systemFlag,
String password, String phone, boolean enabled, boolean accountNonExpired,
boolean credentialsNonExpired, String ldapDn, boolean accountNonLocked,
String userGroup, Collection<? extends GrantedAuthority> authorities) {
boolean credentialsNonExpired, boolean accountNonLocked,
String userGroup, Collection<? extends GrantedAuthority> authorities, String ldapDn) {
super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
this.id = id;
this.deptId = deptId;
......
......@@ -69,11 +69,11 @@ public interface YifuUserDetailsService extends UserDetailsService, Ordered {
SysUser user = info.getSysUser();
// 构造security用户
return new YifuUser(user.getUserId(), user.getDeptId(),user.getDeptName(), user.getUsername(),user.getNickname()
,user.getSystemFlag(), SecurityConstants.BCRYPT + user.getPassword(), user.getPhone(),
true, true, true,
return new YifuUser(user.getUserId(), user.getDeptId(),user.getDeptName(), user.getUsername(),
user.getNickname(),user.getSystemFlag(), SecurityConstants.BCRYPT + user.getPassword(),
user.getPhone(), true, true, true,
StrUtil.equals(user.getLockFlag(), CommonConstants.STATUS_NORMAL),
user.getLdapDn(), user.getUserGroup(),authorities);
user.getUserGroup(),authorities, user.getLdapDn());
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment