23 lines
665 B
C#
23 lines
665 B
C#
// src/Webshop.Application/DTOs/Auth/ResetPasswordDto.cs
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Webshop.Application.DTOs.Auth
|
|
{
|
|
public class ResetPasswordDto
|
|
{
|
|
[Required]
|
|
[EmailAddress]
|
|
public string Email { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public string Token { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[MinLength(6)]
|
|
public string NewPassword { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[Compare(nameof(NewPassword), ErrorMessage = "Die Passwörter stimmen nicht überein.")]
|
|
public string ConfirmPassword { get; set; } = string.Empty;
|
|
}
|
|
} |