Skip to content

Commit 9e4570b

Browse files
authored
Force Logout API to get SignInManager from services (#52949)
1 parent f9d0d6b commit 9e4570b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWeb-CSharp/BlazorWeb-CSharp/Components/Account/IdentityComponentsEndpointRouteBuilderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static IEndpointConventionBuilder MapAdditionalIdentityEndpoints(this IEn
4242

4343
accountGroup.MapPost("/Logout", async (
4444
ClaimsPrincipal user,
45-
SignInManager<ApplicationUser> signInManager,
45+
[FromServices] SignInManager<ApplicationUser> signInManager,
4646
[FromForm] string returnUrl) =>
4747
{
4848
await signInManager.SignOutAsync();

0 commit comments

Comments
 (0)