2024-02-20 11:17:07 +00:00
|
|
|
|
namespace LaaProduction.SharedModels
|
|
|
|
|
|
{
|
2024-07-17 11:13:41 +00:00
|
|
|
|
using System;
|
2024-02-20 11:17:07 +00:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
|
|
public class UserChangePasswordModel
|
|
|
|
|
|
{
|
|
|
|
|
|
[Required(AllowEmptyStrings = false)]
|
2024-12-18 14:25:14 +00:00
|
|
|
|
public string OldPassword { get; set; }
|
2024-02-20 11:17:07 +00:00
|
|
|
|
|
|
|
|
|
|
[Required(AllowEmptyStrings = false)]
|
2024-12-18 14:25:14 +00:00
|
|
|
|
public string NewPassword { get; set; }
|
2024-02-20 11:17:07 +00:00
|
|
|
|
|
|
|
|
|
|
[Required(AllowEmptyStrings = false)]
|
|
|
|
|
|
[Compare(nameof(NewPassword), ErrorMessage = "Password and password confirmation did not match.")]
|
2024-12-18 14:25:14 +00:00
|
|
|
|
public string ConfirmPassword { get; set; }
|
2024-02-20 11:17:07 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|