From 523a84e5d0290de9abbff8b5f5fb216dfa64e750 Mon Sep 17 00:00:00 2001 From: Giteabot <teabot@gitea.io> Date: Mon, 10 Mar 2025 01:02:45 +0800 Subject: [PATCH] Removing unwanted ui container (#33833) (#33835) Backport #33833 by Vinoth-kumar-Ganesan when the passkey auth and register was disabled the unwanted ui container was show Co-authored-by: Vinoth Kumar <103478407+Vinoth-kumar-Ganesan@users.noreply.github.com> Co-authored-by: Vinoth414 <103478407+Vinoth414@users.noreply.github.com> --- templates/user/auth/signin_inner.tmpl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/user/auth/signin_inner.tmpl b/templates/user/auth/signin_inner.tmpl index 1e90b3e924..28a85dd4c2 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}}