Skip to content

Commit 0f942c7

Browse files
authored
Fix property name: User.Identify > User.Identity (#27256)
1 parent 640900c commit 0f942c7

File tree

1 file changed

+1
-1
lines changed
  • aspnetcore/fundamentals/use-http-context/samples

1 file changed

+1
-1
lines changed

aspnetcore/fundamentals/use-http-context/samples/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140

141141
app.MapGet("/user/current", [Authorize] async (HttpContext context) =>
142142
{
143-
var user = await GetUserAsync(context.User.Identify.Name);
143+
var user = await GetUserAsync(context.User.Identity.Name);
144144
return Results.Ok(user);
145145
});
146146

0 commit comments

Comments
 (0)