This commit is contained in:
Joseph Garrone 2024-11-09 19:50:29 +01:00
parent a2ea81b3b8
commit 994f1f8d3d

View File

@ -70,9 +70,9 @@ export default function LoginRecoveryAuthnCodeConfig(props: PageProps<Extract<Kc
type="checkbox" type="checkbox"
id="kcRecoveryCodesConfirmationCheck" id="kcRecoveryCodesConfirmationCheck"
name="kcRecoveryCodesConfirmationCheck" name="kcRecoveryCodesConfirmationCheck"
onChange={function () { onChange={event => {
//@ts-expect-error: This is code from the original theme, we trust it. //@ts-expect-error: This is inherited from the original code
document.getElementById("saveRecoveryAuthnCodesBtn").disabled = !this.checked; document.getElementById("saveRecoveryAuthnCodesBtn").disabled = !event.target.checked;
}} }}
/> />
<label htmlFor="kcRecoveryCodesConfirmationCheck">{msg("recovery-codes-confirmation-message")}</label> <label htmlFor="kcRecoveryCodesConfirmationCheck">{msg("recovery-codes-confirmation-message")}</label>