Browse Source

fix: user新增

tuonian 3 weeks ago
parent
commit
d4c2971f3c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/modules/ldap/user_service.go

+ 1 - 1
server/modules/ldap/user_service.go

@@ -30,7 +30,7 @@ func (c *UserService) Add(body *models.LdapUser) (*models.LdapUser, error) {
 	}
 	err = o.Read(&exist, "Account")
 	if err != nil && errors.Is(err, orm.ErrNoRows) {
-		_, err = o.Insert(&body)
+		_, err = o.Insert(body)
 	} else if err != nil {
 		return nil, err
 	} else {