Skip to content

Commit

Permalink
fix: ldap user login info sync
Browse files Browse the repository at this point in the history
  • Loading branch information
710leo committed Apr 9, 2024
1 parent 2ec2e64 commit 9cf687b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ldapx/ldapx.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func LdapLogin(ctx *ctx.Context, username, pass string, defaultRoles []string, l

if user != nil {
if user.Id > 0 && coverAttributes {
updatedFields := user.UpdateSsoFields("ldap", nickname, email, phone)
updatedFields := user.UpdateSsoFields("ldap", nickname, phone, email)
if err := user.Update(ctx, "update_at", updatedFields...); err != nil {
return nil, errors.WithMessage(err, "failed to update user")
}
Expand Down

0 comments on commit 9cf687b

Please sign in to comment.