25 lines
1.1 KiB
C#
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; }
|
|||
|
}
|
|||
|
}
|