Skip to content

Commit

Permalink
Update user display
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Jan 5, 2025
1 parent dcfd9db commit 69ec414
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions RazorMicrosoftEntraID/Pages/Shared/_LoginPartial.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
<ul class="navbar-nav">
@if (User.Identity != null && User.Identity.IsAuthenticated)
{
<li class="nav-item">
<span class="navbar-text text-dark">Hello @User.Identity.Name!</span>
</li>
<span class="navbar-text text-dark">Hello @User.Identity.Name!</span>

<li class="nav-item">
<a class="nav-link text-dark" asp-area="MicrosoftIdentity" asp-controller="Account" asp-action="SignOut">Sign out</a>
</li>
Expand Down

0 comments on commit 69ec414

Please sign in to comment.