18 lines
542 B
C#
18 lines
542 B
C#
namespace LaaProduction.SharedModels
|
|
{
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
public class UserChangePasswordModel
|
|
{
|
|
[Required(AllowEmptyStrings = false)]
|
|
public string OldPassword { get; set; }
|
|
|
|
[Required(AllowEmptyStrings = false)]
|
|
public string NewPassword { get; set; }
|
|
|
|
[Required(AllowEmptyStrings = false)]
|
|
[Compare(nameof(NewPassword), ErrorMessage = "Password and password confirmation did not match.")]
|
|
public string ConfirmPassword { get; set; }
|
|
}
|
|
}
|