Ver Fonte

Update ldap.go

AY's Macbook Pro há 3 anos atrás
pai
commit
b671e93498
1 ficheiros alterados com 1 adições e 1 exclusões
  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
 		}
 	}