Explorar el Código

Update ldap.go

AY's Macbook Pro hace 3 años
padre
commit
b671e93498
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      mod/auth/ldap/ldap.go

+ 1 - 1
mod/auth/ldap/ldap.go

@@ -186,7 +186,7 @@ func (ldap *ldapHandler) getAllUser(limit int) ([]UserAccount, error) {
 	for i, v := range result {
 		account := ldap.convertGroup(v)
 		accounts = append(accounts, account)
-		if i > limit && limit != -1 {
+		if i+1 > limit && limit != -1 {
 			break
 		}
 	}