BuildFeed/BuildFeed.Model/View/ChangePassword.cs

24 lines
795 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
2015-07-27 16:34:32 +08:00
using BuildFeed.Local;
2014-10-11 06:57:02 +08:00
namespace BuildFeed.Model.View
2014-10-11 06:57:02 +08:00
{
2017-02-24 04:53:49 +08:00
public class ChangePassword
{
[Required]
[MinLength(8)]
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_ConfirmNewPassword))]
[Compare("NewPassword")]
public string ConfirmNewPassword { get; set; }
2014-10-11 06:57:02 +08:00
2017-02-24 04:53:49 +08:00
[Required]
[MinLength(8)]
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_EnterNewPassword))]
public string NewPassword { get; set; }
2014-10-11 06:57:02 +08:00
2017-02-24 04:53:49 +08:00
[Required]
[MinLength(8)]
[Display(ResourceType = typeof(VariantTerms), Name = nameof(VariantTerms.Support_EnterCurrentPassword))]
public string OldPassword { get; set; }
}
}