Files
team-planner/keycloak-theme/team-planner/login/login.ftl
vigdorov 890d6de92e
All checks were successful
continuous-integration/drone/push Build is passing
fix login error on keycloak template
2026-01-15 11:16:56 +03:00

36 lines
1.8 KiB
Plaintext

<#import "template.ftl" as layout>
<@layout.registrationLayout displayMessage=true; section>
<#if section = "form">
<form id="kc-form-login" action="${url.loginAction}" method="post">
<div class="form-group">
<label for="username">
<#if !realm.loginWithEmailAllowed>${msg("username")}<#elseif !realm.registrationEmailAsUsername>${msg("usernameOrEmail")}<#else>${msg("email")}</#if>
</label>
<input tabindex="1" id="username" class="form-control" name="username" value="${(login.username!'')}" type="text" autofocus autocomplete="off" />
</div>
<div class="form-group">
<label for="password">${msg("password")}</label>
<input tabindex="2" id="password" class="form-control" name="password" type="password" autocomplete="off" />
</div>
<div class="form-options">
<#if realm.rememberMe && !usernameHidden??>
<div class="checkbox-group">
<input tabindex="3" id="rememberMe" name="rememberMe" type="checkbox" <#if login.rememberMe??>checked</#if>>
<label for="rememberMe">${msg("rememberMe")}</label>
</div>
<#else>
<div></div>
</#if>
<#if realm.resetPasswordAllowed>
<a tabindex="5" href="${url.loginResetCredentialsUrl}">${msg("doForgotPassword")}</a>
</#if>
</div>
<input type="hidden" id="id-hidden-input" name="credentialId" <#if auth.selectedCredential?has_content>value="${auth.selectedCredential}"</#if>/>
<input tabindex="4" class="btn-primary" name="login" id="kc-login" type="submit" value="${msg("doLogIn")}"/>
</form>
</#if>
</@layout.registrationLayout>