2016-07-15 21:39:30 +08:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2015-07-27 16:34:32 +08:00
|
|
|
|
using BuildFeed.Local;
|
2014-10-11 06:57:02 +08:00
|
|
|
|
|
2016-08-20 05:10:55 +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; }
|
|
|
|
|
}
|
2016-07-15 21:39:30 +08:00
|
|
|
|
}
|