Merge pull request #66 from BinaryAlley/bugfix/remove-login-button-on-register-view-when-already-authenticated

Removes the Login button on the Register view when already authenticated
This commit is contained in:
BinaryAlley authored and GitHub committed 2024-11-14 11:48:39 +02:00
commit dad27690de
1 file changed
+4 -1
@@ -84,7 +84,10 @@
<p id="register-success" class="text-light-one w-100 hidden">Account Created</p>
<img id="totp-image" class="w-200px h-200px h-align-m mx-auto mt-10 hidden" />
<p id="totp-message" class="text-light-one w-100 hidden">Scan Totp Code</p>
<button id="btn-login" type="button" class="confirm-button h-22px w-80px hidden" data-link="@_urlService.GetAbsoluteUrl("Login", "Auth")">Login</button>
@if (User?.Identity?.IsAuthenticated == false)
{
<button id="btn-login" type="button" class="confirm-button h-22px w-80px mx-auto mt-10 hidden" data-link="@_urlService.GetAbsoluteUrl("Login", "Auth")">Login</button>
}
</div>
</div>
@section Scripts {