29 lines
1.4 KiB
Plaintext
29 lines
1.4 KiB
Plaintext
<#import "template.ftl" as layout>
|
|
<@layout.registrationLayout displayInfo=social.displayInfo displayWide=(realm.password && social.providers??); section>
|
|
<#if section = "header">
|
|
${msg("loginTitle",(realm.displayName!''))}
|
|
<#elseif section = "form">
|
|
<h1 class="login-title display-3 mb-5">Log In</h1>
|
|
<form onsubmit="login.disabled = true; return true;" action="${url.loginAction}" method="post">
|
|
<div class="form-group mb-2">
|
|
<label for="username">Username</label>
|
|
<input type="text" name="username" id="username" class="form-control"
|
|
placeholder="Enter your username">
|
|
</div>
|
|
<div class="form-group mb-5">
|
|
<label for="password">Password</label>
|
|
<input type="password" name="password" id="password" class="form-control"
|
|
placeholder="Enter your passsword">
|
|
</div>
|
|
<input name="login" id="kc-login" class="btn btn-block login-btn" type="submit" value="Log in">
|
|
</form>
|
|
<#elseif section = "info" >
|
|
<#if realm.password && realm.registrationAllowed && !registrationDisabled??>
|
|
<div id="kc-registration">
|
|
<span>${msg("noAccount")} <a tabindex="6" href="${url.registrationUrl}">${msg("doRegister")}</a></span>
|
|
</div>
|
|
</#if>
|
|
</#if>
|
|
|
|
</@layout.registrationLayout>
|