本地认证或LDAP认证支持携带‘姓名’、‘部门’、‘邮箱’等用户元信息

This commit is contained in:
huyueeer
2021-08-06 11:40:24 +08:00
parent b77345222c
commit b5fb24b360
6 changed files with 87 additions and 6 deletions

View File

@@ -68,6 +68,9 @@ public class BaseSessionSignOn extends AbstractSingleSignOn {
accountDO.setUsername(dto.getUsername());
accountDO.setRole(AccountRoleEnum.getUserRoleEnum(authUserRegistrationRole).getRole());
accountDO.setPassword(dto.getPassword());
accountDO.setDisplayName(ldapAttrsInfo.get("displayName").toString());
accountDO.setDepartment(ldapAttrsInfo.get("department").toString());
accountDO.setMail(ldapAttrsInfo.get("mail").toString());
accountService.createAccount(accountDO);
}