18 lines
No EOL
476 B
C#
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; } = "";
|
|
} |