26 lines
1.0 KiB
C#
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; }
|
|
}
|
|
} |