Created
April 22, 2023 11:06
-
-
Save thivi/94b6d3d3d7461a58ec22a60ec3bd5f94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@using asp.net_core_boilerplte.Utils; | |
<ul class="navbar-nav"> | |
@if (User?.Identity?.IsAuthenticated == true) | |
{ | |
<li class="nav-item"> | |
<a class="nav-link text-dark" title="Manage">Hello @UserUtils.GetDisplayName(User)!</a> | |
</li> | |
<li class="nav-item"> | |
<a class="nav-link text-dark" asp-area="" asp-controller="Identity" asp-action="Logout">Logout</a> | |
</li> | |
} | |
else | |
{ | |
<li class="nav-item"> | |
<a class="nav-link text-dark" asp-controller="Identity" asp-action="Login">Login</a> | |
</li> | |
} | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment