laatzen/LaaProductionWeb/LaaProduction.SharedModels/UserChangePasswordModel.cs
2024-07-17 13:13:41 +02:00

19 lines
560 B
C#

namespace LaaProduction.SharedModels
{
using System;
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; }
}
}