You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/IoT.Shared/Application/Models/Users/ResetPasswordModel.cs

24 lines
794 B

using Microsoft.AspNetCore.Mvc;
using System.ComponentModel.DataAnnotations;
namespace Application.Models
{
[Display(Name = "重设密码")]
public class ResetPasswordModel
{
[HiddenInput(DisplayValue = false)]
[ScaffoldColumn(true)]
public string Id { get; set; }
[Required(ErrorMessage = nameof(RequiredAttribute))]
[StringLength(100, MinimumLength = 6, ErrorMessage = "密码长度范围为{2}-{1}")]
[DataType(DataType.Password)]
[Display(Name = "登录密码")]
public string Password { get; set; }
[DataType(DataType.Password)]
[Display(Name = "确认密码")]
[Compare("Password", ErrorMessage = "确认密码输入错误")]
public string ConfirmPassword { get; set; }
}
}