hunk.code_window: func (handler *Handler) authenticateLDAP(w http.ResponseWriter, user *portainer.User, password string, ldapSettings *portainer.LDAPSettings) *httperror.HandlerError {
   	err := handler.LDAPService.AuthenticateUser(user.Username, password, ldapSettings)
   	if err != nil {
   		return handler.authenticateInternal(w, user, password)
   	}
  
hunk.labels: keep replace replace replace replace keep keep
hunk.after_edit: 	if settings.AuthenticationMethod == portainer.AuthenticationOAuth {
   		return &httperror.HandlerError{http.StatusUnprocessableEntity, "Only initial admin is allowed to login without oauth", httperrors.ErrUnauthorized}
  
hunk.file_path: api/http/handler/auth/authenticate.go
hunk.type: replace
file: export default class DatatableFilterController {
    isEnabled() {
      return 0 < this.state.length && this.state.length < this.labels.length;
    }
  
    onChangeItem(filterValue) {
      if (this.isChecked(filterValue)) {
        return this.onChange(
          this.filterKey,
          this.state.filter((v) => v !== filterValue)
        );
      }
      return this.onChange(this.filterKey, [...this.state, filterValue]);
    }
  
    isChecked(filterValue) {
      return this.state.includes(filterValue);
    }
  }
  