mirror of
https://gitlab.com/buildfeed/BuildFeed.git
synced 2024-03-22 21:10:34 +08:00
24 lines
766 B
C#
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; }
|
|
}
|
|
} |