Explorar o código

Update ldap.go

AY's Macbook Pro %!s(int64=3) %!d(string=hai) anos
pai
achega
b671e93498
Modificáronse 1 ficheiros con 1 adicións e 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
 		}
 	}