resend integration
This commit is contained in:
23
Webshop.Application/DTOs/Auth/ResetPasswordDto.cs
Normal file
23
Webshop.Application/DTOs/Auth/ResetPasswordDto.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user