demo20230512/ViewModels/ResetPasswordViewModel.cs

24 lines
714 B
C#
Raw Normal View History

2023-05-12 10:20:28 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Weee.Models;
using Resources;
namespace Weee.ViewModels
{
public class ResetPasswordViewModel
{
[Display(Name = "NewPassword", ResourceType = typeof(Resource))]
public string NewPassword { get; set; }
[Required(ErrorMessageResourceType = typeof(Resource),
ErrorMessageResourceName = "RequiredMessage")]
[Compare("NewPassword")]
[Display(Name = "StaticLabelUserPasswordRepeat", ResourceType = typeof(Resource))]
public string NewPassword2 { get; set; }
public string UserName { get; set; }
}
}