removing old auth stuff
This commit is contained in:
@@ -32,22 +32,6 @@
|
||||
</nav>
|
||||
</header> *@
|
||||
<div class="game-frame">
|
||||
<!-- Authentication Status -->
|
||||
<div style="position: fixed; top: 10px; right: 10px; z-index: 1000; background: rgba(255,255,255,0.9); padding: 10px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);">
|
||||
@if (User.Identity.IsAuthenticated)
|
||||
{
|
||||
<span class="text-success">👤 @User.Identity.Name</span>
|
||||
<form asp-controller="Account" asp-action="Logout" method="post" style="display: inline;">
|
||||
<button type="submit" class="btn btn-sm btn-outline-danger ms-2">Logout</button>
|
||||
</form>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a asp-controller="Account" asp-action="Login" class="btn btn-sm btn-primary">Login</a>
|
||||
<a asp-controller="Account" asp-action="Register" class="btn btn-sm btn-success ms-1">Register</a>
|
||||
}
|
||||
</div>
|
||||
|
||||
<main role="main" class="pb-3">
|
||||
@RenderBody()
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user