Files
rent-a-car/RentACar/WebApp/Areas/Identity/Pages/Account/Logout.cshtml
ani_konarcheva@abv.bg 0f3e02cb92 Register
2022-03-30 14:25:53 +03:00

21 lines
584 B
Plaintext

@page
@model LogoutModel
@{
ViewData["Title"] = "Log out";
}
<header>
<h1>@ViewData["Title"]</h1>
@{
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>