main
Last change
on this file since 784b3ad was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 4 months ago |
init commit Elena
|
-
Property mode
set to
100644
|
File size:
595 bytes
|
Line | |
---|
1 | @page
|
---|
2 | @model LogoutModel
|
---|
3 | @{
|
---|
4 | ViewData["Title"] = "Log out";
|
---|
5 | }
|
---|
6 |
|
---|
7 | <header>
|
---|
8 | <h1>@ViewData["Title"]</h1>
|
---|
9 | @{
|
---|
10 | if (User.Identity?.IsAuthenticated ?? false)
|
---|
11 | {
|
---|
12 | <form class="form-inline" asp-area="Identity" asp-page="/Account/Logout" asp-route-returnUrl="@Url.Page("/", new { area = "" })" method="post">
|
---|
13 | <button type="submit" class="nav-link btn btn-link text-dark">Click here to Logout</button>
|
---|
14 | </form>
|
---|
15 | }
|
---|
16 | else
|
---|
17 | {
|
---|
18 | <p>You have successfully logged out of the application.</p>
|
---|
19 | }
|
---|
20 | }
|
---|
21 | </header>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.