aboutsummaryrefslogtreecommitdiff
path: root/ExamTemplate/Web/Views
diff options
context:
space:
mode:
Diffstat (limited to 'ExamTemplate/Web/Views')
-rw-r--r--ExamTemplate/Web/Views/Shared/_Navbar.cshtml4
1 files changed, 4 insertions, 0 deletions
diff --git a/ExamTemplate/Web/Views/Shared/_Navbar.cshtml b/ExamTemplate/Web/Views/Shared/_Navbar.cshtml
index f60b799..e32b8c5 100644
--- a/ExamTemplate/Web/Views/Shared/_Navbar.cshtml
+++ b/ExamTemplate/Web/Views/Shared/_Navbar.cshtml
@@ -17,6 +17,10 @@
@if (SignInManager.IsSignedIn(User))
{
<a asp-controller="User" asp-action="">@UserManager.GetUserName(User)</a>
+
+ <form asp-controller="User" asp-action="Logout" method="post">
+ <input type="submit" value="Logout">
+ </form>
}
else
{