demo20230512/ViewModels/ProfileChangePasswordViewModel.cs
2023-05-12 10:20:28 +08:00

26 lines
1.0 KiB
C#

using Resources;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
namespace Weee.ViewModels
{
public class ProfileChangePasswordViewModel
{
[Required(ErrorMessageResourceType = typeof(Resource),
ErrorMessageResourceName = "RequiredMessage")]
[Display(Name = "OriginalPassword",ResourceType=typeof(Resource))]
public string OriginalPassword { get; set; }
[Required(ErrorMessageResourceType = typeof(Resource),
ErrorMessageResourceName = "RequiredMessage")]
[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; }
}
}