laatzen/LaaProductionWeb/LaaProduction.SharedModels/UserChangePasswordModel.cs
2024-02-20 12:17:07 +01:00

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; }
}
}