</head>
<body>
{include="page.header"}
-{if="!ban_canLogin($conf)"}
+{if="!$user_can_login"}
<div class="pure-g pure-alert pure-alert-error pure-alert-closable center">
<div class="pure-u-2-24"></div>
<div class="pure-u-20-24">
{else}
<div class="pure-g">
<div class="pure-u-lg-1-3 pure-u-1-24"></div>
- <div id="login-form" class="page-form page-form-light pure-u-lg-1-3 pure-u-22-24">
+ <div id="login-form" class="page-form page-form-light pure-u-lg-1-3 pure-u-22-24 login-form-container">
<form method="post" name="loginform">
<h2 class="window-title">{'Login'|t}</h2>
<div>
{if="!empty($username)"}value="{$username}"{/if} class="autofocus" tabindex="20">
</div>
<div>
- <input type="password" name="password" placeholder="{'Password'|t}" tabindex="21">
+ <input type="password" name="password" placeholder="{'Password'|t}" class="autofocus" tabindex="21">
</div>
<div class="remember-me">
<input type="checkbox" name="longlastingsession" id="longlastingsessionform"
- checked="checked" tabindex="22">
+ {if="$remember_user_default"}checked="checked"{/if}
+ tabindex="22">
<label for="longlastingsessionform">{'Remember me'|t}</label>
</div>
<div>
{/if}
{include="page.footer"}
-<script>
- {if="ban_canLogin($conf) && ! empty($username)"}
- // Focus password on load if the username is set.
- var passwords = document.getElementsByName('password');
- if (passwords.length == 2) {
- passwords[1].focus();
- }
- {/if}
-</script>
</body>
</html>