blogifierdotnet / Blogifier

Blogifier is an open-source publishing platform Written in ASP.NET and Blazor WebAssembly. With Blogifier make a personal blog or a website.
https://blogifier.net
MIT License
1.26k stars 518 forks source link

Questions: How the data validation works for Blogifier #306

Closed LinQiaoPorco closed 2 years ago

LinQiaoPorco commented 2 years ago
image

Does the floating data validation message come from standard ASP.NET Core Blazor data binding and validation function? It seems different with the standard red text validation message:

image

I tried to switch Blogifier from local sign-in to OpenID Connect sign-in, but I found the profileview.razor in Blogifier.Admin reported that the data validation failed, because the OnInvalidSubmit was triggered:

<EditForm Model="@Author" OnValidSubmit="SaveProfile" OnInvalidSubmit="ShowErrorSummary"> and protected void ShowErrorSummary() { displayValidationErrorMessages = true; }

but no error message printed out by <ValidationSummary /> as: `@if (displayValidationErrorMessages) {

}`
rxtur commented 2 years ago

I believe popup in your screenshot coming from standard HTML control validation driven by input type set to "email"

<input class="form-control" type="email" @bind="Author.Email" />