Keycloak
35 строк · 1.8 Кб
1<#import "template.ftl" as layout>
2<@layout.registrationLayout; section>
3<#if section = "title">
4${msg("loginTitle",realm.name)}
5<#elseif section = "header">
6${msg("loginTitleHtml",realm.name)}
7<#elseif section = "form">
8<form id="kc-totp-login-form" class="${properties.kcFormClass!}" action="${url.loginAction}" method="post">
9<div class="${properties.kcFormGroupClass!}">
10<div class="${properties.kcLabelWrapperClass!}">
11<label for="totp" class="${properties.kcLabelClass!}">What is your mom's first name</label>
12</div>
13
14<div class="${properties.kcInputWrapperClass!}">
15<input id="totp" name="secret_answer" type="text" class="${properties.kcInputClass!}" />
16</div>
17</div>
18
19<div class="${properties.kcFormGroupClass!}">
20<div id="kc-form-options" class="${properties.kcFormOptionsClass!}">
21<div class="${properties.kcFormOptionsWrapperClass!}">
22</div>
23</div>
24
25<div id="kc-form-buttons" class="${properties.kcFormButtonsClass!}">
26<div class="${properties.kcFormButtonsWrapperClass!}">
27<input type="hidden" id="id-hidden-input" name="credentialId" <#if auth.selectedCredential?has_content>value="${auth.selectedCredential}"</#if>/>
28<input class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!}"
29name="login" id="kc-login" type="submit" value="${msg("doLogIn")}"/>
30</div>
31</div>
32</div>
33</form>
34</#if>
35</@layout.registrationLayout>