Add files to have a simple EditForm and reproduce POST issue (asks for FormName attribute)
This commit is contained in:
12
Models/ViewModels/UserRegister.cs
Normal file
12
Models/ViewModels/UserRegister.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Sandbox.Models.ViewModels;
|
||||
|
||||
public class UserRegister
|
||||
{
|
||||
public string Email { get; set; } = string.Empty;
|
||||
[Required, StringLength(100, MinimumLength = 5)]
|
||||
public string Password { get; set; } = string.Empty;
|
||||
[Compare("Password", ErrorMessage = "The password do not match.")]
|
||||
public string ConfirmPassword { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user