demo20230512/Areas/Certification/Models/ChangePassword.cs
2023-05-12 10:20:28 +08:00

25 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using Resources;
namespace Weee.Areas.Certification.Models
{
public class ChangePassword
{
[Required(ErrorMessageResourceName = "RequiredMessage", ErrorMessageResourceType = typeof(Resource))]
[Display(Name = "OriginalPassword", ResourceType = typeof(Resource))]
public string OriginalPassword { get; set; }
[Required(ErrorMessageResourceName = "RequiredMessage", ErrorMessageResourceType = typeof(Resource))]
[Display(Name = "NewPassword", ResourceType = typeof(Resource))]
[Compare("ConfirmPassword", ErrorMessageResourceName = "PwValidationConfirmationMsg", ErrorMessageResourceType = typeof(Resource))]
public string NewPassword { get; set; }
[Required(ErrorMessageResourceName = "RequiredMessage", ErrorMessageResourceType = typeof(Resource))]
[Display(Name = "ConfirmPassword", ResourceType = typeof(Resource))]
public string ConfirmPassword { get; set; }
}
}