Merge pull request #722 from zvn2060/main

Fix #721: mismatched LoginPasskeysConditionalAuthenticate
This commit is contained in:
Joseph Garrone 2024-11-18 17:23:15 +00:00 committed by GitHub
commit a1f15f2f6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,11 +115,13 @@ export default function LoginPasskeysConditionalAuthenticate(
</div>
</>
)}
</>
)}
<div id="kc-form">
<div id="kc-form-wrapper">
{realm.password && (
<form
id="kc-form-passkey"
id="kc-form-login"
action={url.loginAction}
method="post"
style={{ display: "none" }}
@ -144,10 +146,9 @@ export default function LoginPasskeysConditionalAuthenticate(
className={kcClsx("kcInputClass")}
name="username"
defaultValue={login.username ?? ""}
//autoComplete="username webauthn"
autoComplete="username webauthn"
type="text"
autoFocus
autoComplete="off"
/>
{messagesPerField.existsError("username") && (
<span id="input-error-username" className={kcClsx("kcInputErrorMessageClass")} aria-live="polite">
@ -169,8 +170,6 @@ export default function LoginPasskeysConditionalAuthenticate(
</div>
</div>
</div>
</>
)}
</div>
</Template>
);