hunk.code_window: 	"github.com/portainer/libhttp/request"
   	"github.com/portainer/libhttp/response"
   	portainer "github.com/portainer/portainer/api"
   	httperrors "github.com/portainer/portainer/api/http/errors"
   )
   type authenticatePayload struct {
   	// Username
  
hunk.labels: keep keep keep add keep keep keep keep
hunk.after_edit: 	"github.com/portainer/portainer/api/internal/authorization"
  
hunk.file_path: api/http/handler/auth/authenticate.go
hunk.type: add
file: import { UsersSelector } from '@/portainer/components/UsersSelector';
  import { FormControl } from '@/portainer/components/form-components/FormControl';
  import { UserViewModel } from '@/portainer/models/user';
  import { Link } from '@/portainer/components/Link';
  
  interface Props {
    users: UserViewModel[];
    value: number[];
    onChange(value: number[]): void;
  }
  
  export function UsersField({ users, value, onChange }: Props) {
    return (
      <FormControl
        label="Authorized users"
        tooltip={
          users.length > 0
            ? 'You can select which user(s) will be able to manage this resource.'
            : undefined
        }
        inputId="users-selector"
      >
        {users.length > 0 ? (
          <UsersSelector
            users={users}
            onChange={onChange}
            value={value}
            inputId="users-selector"
          />
        ) : (
          <span className="small text-muted">
            You have not yet created any users. Head over to the
            <Link to="portainer.users">Users view</Link> to manage users.
          </span>
        )}
      </FormControl>
    );
  }
  