try
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// src/Webshop.Application/DTOs/Users/AdminResetPasswordRequestDto.cs
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Webshop.Application.DTOs.Users
|
||||
{
|
||||
public class AdminResetPasswordRequestDto
|
||||
{
|
||||
[Required(ErrorMessage = "Benutzer-ID ist erforderlich.")]
|
||||
public string UserId { get; set; } = string.Empty;
|
||||
|
||||
[Required(ErrorMessage = "Neues Passwort ist erforderlich.")]
|
||||
[MinLength(6, ErrorMessage = "Passwort muss mindestens 6 Zeichen lang sein.")]
|
||||
public string NewPassword { get; set; } = string.Empty;
|
||||
|
||||
[Required(ErrorMessage = "Passwortbestätigung ist erforderlich.")]
|
||||
[Compare("NewPassword", ErrorMessage = "Neues Passwort und Bestätigung stimmen nicht überein.")]
|
||||
public string ConfirmNewPassword { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user