Template
mirror of
https://github.com/egmont11/ASP.Net-Core-MVC-Template.git
synced 2026-11-20 20:21:00 +01:00
Fixed up the database connection, added admin account and admin area
This commit is contained in:
1 parent
f50bec167f
commit
982093ff7a
20 files changed
+425
-14
No files matched your search
@@ -30,6 +30,12 @@
|
||||
<ul class="navbar-nav">
|
||||
@if (User.Identity?.IsAuthenticated == true)
|
||||
{
|
||||
@if (User.IsInRole("Admin"))
|
||||
{
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-primary fw-bold" asp-area="Admin" asp-controller="Dashboard" asp-action="Index">Admin Panel</a>
|
||||
</li>
|
||||
}
|
||||
<li class="nav-item">
|
||||
<span class="nav-link text-dark">Hello, @User.Identity.Name!</span>
|
||||
</li>
|
||||
|
||||
Reference in new issue
Block a user