Show logout button if logged in on logout (#22444)
* Show logout button if logged in on logout * Remove stuff
This commit is contained in:
parent
e204911c3c
commit
5a856437d0
|
|
@ -6,5 +6,16 @@
|
|||
|
||||
<header>
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
<p>You have successfully logged out of the application.</p>
|
||||
@{
|
||||
if (User.Identity.IsAuthenticated)
|
||||
{
|
||||
<form class="form-inline" asp-area="Identity" asp-page="/Account/Logout" asp-route-returnUrl="@Url.Page("/", new { area = "" })" method="post">
|
||||
<button type="submit" class="nav-link btn btn-link text-dark">Click here to Logout</button>
|
||||
</form>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p>You have successfully logged out of the application.</p>
|
||||
}
|
||||
}
|
||||
</header>
|
||||
|
|
|
|||
|
|
@ -6,5 +6,16 @@
|
|||
|
||||
<header>
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
<p>You have successfully logged out of the application.</p>
|
||||
@{
|
||||
if (User.Identity.IsAuthenticated)
|
||||
{
|
||||
<form class="form-inline" asp-area="Identity" asp-page="/Account/Logout" asp-route-returnUrl="@Url.Page("/", new { area = "" })" method="post">
|
||||
<button type="submit" class="nav-link btn btn-link text-dark">Click here to Logout</button>
|
||||
</form>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p>You have successfully logged out of the application.</p>
|
||||
}
|
||||
}
|
||||
</header>
|
||||
|
|
|
|||
Loading…
Reference in New Issue