Add protected admin scope with login
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
@page
|
||||
@model RazorPagesMovie.Pages.Admin.IndexModel
|
||||
@{
|
||||
ViewData["Title"] = "Admin";
|
||||
}
|
||||
|
||||
<h1>Welcome, @User.Identity?.Name</h1>
|
||||
|
||||
<form method="post" asp-page-handler="Logout">
|
||||
<button type="submit" class="btn btn-secondary">Logout</button>
|
||||
</form>
|
||||
Reference in New Issue
Block a user