jan/conf/keycloak_theme/keywind/login/webauthn-error.ftl
James 2704301fd1 chore: update configuration files
- adding a default theme for keycloak
- set default credential when user sign in

Signed-off-by: James <james@jan.ai>
2023-09-06 07:54:13 -07:00

35 lines
1.3 KiB
Plaintext

<#import "template.ftl" as layout>
<#import "components/atoms/button.ftl" as button>
<#import "components/atoms/button-group.ftl" as buttonGroup>
<@layout.registrationLayout displayMessage=true; section>
<#if section="header">
${kcSanitize(msg("webauthn-error-title"))?no_esc}
<#elseif section="form">
<div x-data>
<form action="${url.loginAction}" method="post" x-ref="errorCredentialForm">
<input name="authenticationExecution" type="hidden" x-ref="executionValueInput" />
<input name="isSetRetry" type="hidden" x-ref="isSetRetryInput" />
</form>
<@buttonGroup.kw>
<@button.kw
@click="$refs.executionValueInput.value = '${execution}'; $refs.isSetRetryInput.value = 'retry'; $refs.errorCredentialForm.submit()"
color="primary"
name="try-again"
tabindex="4"
type="button"
>
${kcSanitize(msg("doTryAgain"))?no_esc}
</@button.kw>
<#if isAppInitiatedAction??>
<form action="${url.loginAction}" method="post">
<@button.kw color="secondary" name="cancel-aia" type="submit" value="true">
${msg("doCancel")}
</@button.kw>
</form>
</#if>
</@buttonGroup.kw>
</div>
</#if>
</@layout.registrationLayout>