如何自定义django-graphql-jwt中的验证行为

时间:2019-06-07 09:47:15

标签: django graphql

我想自定义django-graphql-jwt中的@page "/" @using WebApplication1.Data @using WebApplication1.Resources @inject LocService SharedLocalizer @SharedLocalizer.GetLocalizedHtmlString("Title") <EditForm Model="@Movie" OnValidSubmit="@HandleValidSubmit"> <DataAnnotationsValidator /> <ValidationSummary /> <InputText id="Title" bind-Value="@Movie.Title" /> <button type="submit">Submit</button> </EditForm> @functions { private Movie Movie = new Movie(); private void HandleValidSubmit() { Console.WriteLine("OnValidSubmit"); } } public class Movie { public int Id { get; set; } [Required(ErrorMessage = "titleRequired")] [EmailAddress] [Display(Name = "titleRequired")] public string Title { get; set; } } 行为。

我在文档中发现的唯一内容是customizingVerify行为。

如何正确覆盖此类?

0 个答案:

没有答案