BuildFeed/BuildFeed.Model/View/ChangePassword.cs
2016-08-19 22:10:55 +01:00

24 lines
766 B
C#

using System.ComponentModel.DataAnnotations;
using BuildFeed.Local;
namespace BuildFeed.Model.View
{
public class ChangePassword
{
[Required]
[MinLength(8)]
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_ConfirmNewPassword))]
[Compare("NewPassword")]
public string ConfirmNewPassword { get; set; }
[Required]
[MinLength(8)]
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_EnterNewPassword))]
public string NewPassword { get; set; }
[Required]
[MinLength(8)]
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_EnterCurrentPassword))]
public string OldPassword { get; set; }
}
}