Fix div duplication

This commit is contained in:
Joseph Garrone 2024-08-14 15:48:16 +02:00
parent 2e371d2078
commit 6edf9c3d15

View File

@ -223,7 +223,6 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
{children} {children}
{auth !== undefined && auth.showTryAnotherWayLink && ( {auth !== undefined && auth.showTryAnotherWayLink && (
<form id="kc-select-try-another-way-form" action={url.loginAction} method="post"> <form id="kc-select-try-another-way-form" action={url.loginAction} method="post">
<div className={kcClsx("kcFormGroupClass")}>
<div className={kcClsx("kcFormGroupClass")}> <div className={kcClsx("kcFormGroupClass")}>
<input type="hidden" name="tryAnotherWay" value="on" /> <input type="hidden" name="tryAnotherWay" value="on" />
<a <a
@ -237,7 +236,6 @@ export default function Template(props: TemplateProps<KcContext, I18n>) {
{msg("doTryAnotherWay")} {msg("doTryAnotherWay")}
</a> </a>
</div> </div>
</div>
</form> </form>
)} )}
{socialProvidersNode} {socialProvidersNode}