resend integration
This commit is contained in:
12
Webshop.Application/DTOs/Auth/ForgotPasswordRequestDto.cs
Normal file
12
Webshop.Application/DTOs/Auth/ForgotPasswordRequestDto.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
// src/Webshop.Application/DTOs/Auth/ForgotPasswordRequestDto.cs
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Webshop.Application.DTOs.Auth
|
||||
{
|
||||
public class ForgotPasswordRequestDto
|
||||
{
|
||||
[Required]
|
||||
[EmailAddress]
|
||||
public string Email { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
using System;
|
||||
//Webshop.Application/DTOs/Email/ChangeEmailRequestDto.cs
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
//Webshop.Application/DTOs/Email/ResendEmailConfirmationRequestDto.cs
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
|
||||
Reference in New Issue
Block a user