| 1 | <#import "template.ftl" as layout> |
| 2 | <@layout.registrationLayout displayMessage=true; section> |
| 3 | <#if section = "header"> |
| 4 | ${kcSanitize(msg("webauthn-error-title"))?no_esc} |
| 5 | <#elseif section = "form"> |
| 6 | |
| 7 | <script type="text/javascript"> |
| 8 | refreshPage = () => { |
| 9 | document.getElementById('isSetRetry').value = 'retry'; |
| 10 | document.getElementById('executionValue').value = '${execution}'; |
| 11 | document.getElementById('kc-error-credential-form').requestSubmit(); |
| 12 | } |
| 13 | </script> |
| 14 | |
| 15 | <form id="kc-error-credential-form" class="${properties.kcFormClass!}" action="${url.loginAction}" |
| 16 | method="post"> |
| 17 | <input type="hidden" id="executionValue" name="authenticationExecution"/> |
| 18 | <input type="hidden" id="isSetRetry" name="isSetRetry"/> |
| 19 | </form> |
| 20 | |
| 21 | <input tabindex="4" onclick="refreshPage()" type="button" |
| 22 | class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}" |
| 23 | name="try-again" id="kc-try-again" value="${kcSanitize(msg("doTryAgain"))?no_esc}" |
| 24 | /> |
| 25 | |
| 26 | <#if isAppInitiatedAction??> |
| 27 | <form action="${url.loginAction}" class="${properties.kcFormClass!}" id="kc-webauthn-settings-form" method="post"> |
| 28 | <button type="submit" |
| 29 | class="${properties.kcButtonClass!} ${properties.kcButtonDefaultClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}" |
| 30 | id="cancelWebAuthnAIA" name="cancel-aia" value="true">${msg("doCancel")} |
| 31 | </button> |
| 32 | </form> |
| 33 | </#if> |
| 34 | |
| 35 | </#if> |
| 36 | </@layout.registrationLayout> |