code: func (s *IdentityService) GetUserLoginAttempts(user string) ([]services.LoginAttempt, error) {
  	startKey := backend.Key(webPrefix, usersPrefix, user, attemptsPrefix)
  	result, err := s.GetRange(context.TODO(), startKey, backend.RangeEnd(startKey), backend.NoLimit)
  	if err != nil {
  		return nil, trace.Wrap(err)
  	}
  	out := make([]services.LoginAttempt, len(result.Items))
  	for i, item := range result.Items {
  		var a services.LoginAttempt
  		if err := json.Unmarshal(item.Value, &a); err != nil {
  			return nil, trace.Wrap(err)
  		}
  		out[i] = a
  	}
  	sort.Sort(services.SortedLoginAttempts(out))
  	return out, nil
  }
docs: // GetUserLoginAttempts returns user login attempts