laatzen/LaaProductionWeb/LaaProduction.SharedModels/UserChangePasswordModel.cs
Stoyan Zlatev e32e553bfc clr types
2024-12-18 15:25:14 +01: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; }
}
}