Skip to content

Instantly share code, notes, and snippets.

@Tembrel
Created January 5, 2014 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tembrel/8271952 to your computer and use it in GitHub Desktop.
Save Tembrel/8271952 to your computer and use it in GitHub Desktop.
Login form for use with custom authenticator.
<!DOCTYPE html>
<#escape x as x?html>
<html>
<head>
<title>Login</title>
<link href="/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<#include "/lib/masthead.ftl">
<@masthead showAuthLink=false>Login</@masthead>
<div class="the-body">
<form class="the-form" method="POST" action="${loginPath}?${redirectQueryName}=${redirectQueryValue}">
<fieldset>
<legend>Enter user name and password</legend>
<ol>
<li>
<label for="user">User</label>
<input type="text" id="user" name="${identifierFormName}" size="15"
autofocus="autofocus"
<#if initialUserValue??>
value="${initialUserValue}"
<#else>
autofocus="autofocus"
</#if>
/>
</li>
<li>
<label for="password">Password</label>
<input type="password" id="password" name="${secretFormName}" size="15"
title="Passwords typically have both numbers and uppercase AND lowercase letters"
<#if initialUserValue??>
autofocus="autofocus"
</#if>
/>
</li>
</ol>
</fieldset>
<fieldset>
<button type="submit">Login</button>
</fieldset>
</form>
</div>
</body>
</html>
</#escape>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment