tuonian 4 долоо хоног өмнө
parent
commit
d4c2971f3c

+ 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 {