From 8d48610dc3549c8471eb5f16e01a9bcb87c9efd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20H=C3=B8llund=20Kristensen?= Date: Fri, 12 Dec 2025 14:37:29 +0100 Subject: [PATCH] Removed requirement of email verification from account deletion --- AutoStack.Presentation/Endpoints/User/UserEndpoints.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/AutoStack.Presentation/Endpoints/User/UserEndpoints.cs b/AutoStack.Presentation/Endpoints/User/UserEndpoints.cs index 1d6c2a7..7e84d48 100644 --- a/AutoStack.Presentation/Endpoints/User/UserEndpoints.cs +++ b/AutoStack.Presentation/Endpoints/User/UserEndpoints.cs @@ -40,8 +40,7 @@ public static void MapUserEndpoints(this IEndpointRouteBuilder app) group.MapDelete("/deleteaccount", DeleteAccount) .WithName("DeleteAccount") - .WithSummary("Delete account") - .RequireAuthorization("EmailVerified"); + .WithSummary("Delete account"); } private static async Task GetCurrentUser(