dtos neu und aufräumen
This commit is contained in:
@@ -5,6 +5,7 @@ using System.Security.Claims;
|
||||
using Webshop.Application.DTOs; // CustomerDto
|
||||
using Webshop.Application.DTOs.Auth; // ChangePasswordRequestDto
|
||||
using Webshop.Application.DTOs.Customers; // UpdateCustomerProfileDto
|
||||
using Webshop.Application.DTOs.Email;
|
||||
using Webshop.Application.Services;
|
||||
using System.Threading.Tasks;
|
||||
using Webshop.Application.Services.Customers;
|
||||
@@ -12,15 +13,6 @@ using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Webshop.Api.Controllers.Customer
|
||||
{
|
||||
public class ChangeEmailRequestDto
|
||||
{
|
||||
[Required(ErrorMessage = "Neue E-Mail ist erforderlich.")]
|
||||
[EmailAddress(ErrorMessage = "Ung<6E>ltiges E-Mail-Format.")]
|
||||
public string NewEmail { get; set; } = string.Empty;
|
||||
|
||||
[Required(ErrorMessage = "Aktuelles Passwort ist erforderlich.")]
|
||||
public string CurrentPassword { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
[ApiController]
|
||||
[Route("api/v1/[controller]")] // z.B. /api/v1/customer/profile
|
||||
|
||||
Reference in New Issue
Block a user