aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinoth Kumar <103478407+Vinoth-kumar-Ganesan@users.noreply.github.com>2025-03-09 22:08:11 +0530
committerGitHub <noreply@github.com>2025-03-10 00:38:11 +0800
commit3e53b011432b2e320397063df57992a90f9dc5e6 (patch)
treed660aeb83c21c6a175e8cf12782f1706583295ca
parent3f1f808b9eeb3f7cd923c6b89fbb57583202e76d (diff)
downloadgitea-3e53b011432b2e320397063df57992a90f9dc5e6.tar.gz
gitea-3e53b011432b2e320397063df57992a90f9dc5e6.zip
Removing unwanted ui container (#33833)
when the passkey auth and register was disabled the unwanted ui container was show Co-authored-by: Vinoth414 <103478407+Vinoth414@users.noreply.github.com>
-rw-r--r--templates/user/auth/signin_inner.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/user/auth/signin_inner.tmpl b/templates/user/auth/signin_inner.tmpl
index de3a1cdea7..5552363a0a 100644
--- a/templates/user/auth/signin_inner.tmpl
+++ b/templates/user/auth/signin_inner.tmpl
@@ -59,6 +59,7 @@
</div>
</div>
+{{if or .EnablePasskeyAuth .ShowRegistrationButton}}
<div class="ui container fluid">
<div class="ui attached segment header top tw-max-w-2xl tw-m-auto tw-flex tw-flex-col tw-items-center">
{{if .EnablePasskeyAuth}}
@@ -74,3 +75,4 @@
{{end}}
</div>
</div>
+{{end}}