Wonky.Client/Wonky.Entity/DTO/AdminResetPasswordDto.cs
2022-07-01 10:02:29 +02:00

18 lines
No EOL
476 B
C#

using System.ComponentModel.DataAnnotations;
namespace Wonky.Entity.DTO;
public class AdminResetPasswordDto
{
/// <summary>
/// New password
/// </summary>
[Required(ErrorMessage = "Kode skal udfyldes")]
public string NewPassword { get; set; } = "";
/// <summary>
/// Password confirmation
/// </summary>
[Compare(nameof(NewPassword), ErrorMessage = "Koderne er ikke ens.")]
public string ConfirmPassword { get; set; } = "";
}