mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Removes the Login button on the Register view when the user is already authenticated
This commit is contained in:
1 parent
baa5d3654c
commit
437d5750b9
1 file changed
+4
-1
@@ -84,7 +84,10 @@
|
|||||||
<p id="register-success" class="text-light-one w-100 hidden">Account Created</p>
|
<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" />
|
<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>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
@section Scripts {
|
@section Scripts {
|
||||||
|
|||||||
Reference in new issue
Block a user