feat: fix LDAP mobile field incorrect mapped (#2206)

This commit is contained in:
Yaodong Yu 2023-08-12 13:45:26 +08:00 committed by GitHub
parent 33a922f026
commit db4ac60bb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -47,13 +47,12 @@ type LdapUser struct {
Email string `json:"email"`
EmailAddress string
TelephoneNumber string
Mobile string
Mobile string `json:"mobile"`
MobileTelephoneNumber string
RegisteredAddress string
PostalAddress string
GroupId string `json:"groupId"`
Phone string `json:"phone"`
Address string `json:"address"`
MemberOf string `json:"memberOf"`
}
@ -318,7 +317,7 @@ func SyncLdapUsers(owner string, syncUsers []LdapUser, ldapId string) (existUser
DisplayName: syncUser.buildLdapDisplayName(),
Avatar: organization.DefaultAvatar,
Email: syncUser.Email,
Phone: syncUser.Phone,
Phone: syncUser.Mobile,
Address: []string{syncUser.Address},
Affiliation: affiliation,
Tag: tag,

View File

@ -191,8 +191,8 @@ class LdapSyncPage extends React.Component {
},
{
title: i18next.t("general:Phone"),
dataIndex: "phone",
key: "phone",
dataIndex: "mobile",
key: "mobile",
sorter: (a, b) => a.phone.localeCompare(b.phone),
},
{