]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - tpl/vintage/loginform.html
Refactor login / ban authentication steps
[github/shaarli/Shaarli.git] / tpl / vintage / loginform.html
CommitLineData
45034273
SS
1<!DOCTYPE html>
2<html>
3<head>{include="includes"}</head>
dbcd06e9 4<body
44acf706 5{if="$user_can_login"}
85c4bdc2
A
6 {if="empty($username)"}
7 onload="document.loginform.login.focus();"
8 {else}
9 onload="document.loginform.password.focus();"
10 {/if}
11{/if}>
45034273 12<div id="pageheader">
dbcd06e9 13 {include="page.header"}
45034273 14
dbcd06e9 15 <div id="headerform">
4cfe8d33 16 {if="!ban_canLogin($conf)"}
dbcd06e9
A
17 You have been banned from login after too many failed attempts. Try later.
18 {else}
19 <form method="post" name="loginform">
85c4bdc2
A
20 <label for="login">Login: <input type="text" id="login" name="login" tabindex="1"
21 {if="!empty($username)"}value="{$username}"{/if}>
22 </label>
23 <label for="password">Password: <input type="password" id="password" name="password" tabindex="2">
24 </label>
dbcd06e9
A
25 <input type="submit" value="Login" class="bigbutton" tabindex="4">
26 <label for="longlastingsession">
2e07e775
WE
27 <input type="checkbox" name="longlastingsession"
28 id="longlastingsession" tabindex="3"
29 {if="$remember_user_default"}checked="checked"{/if}>
dbcd06e9
A
30 Stay signed in (Do not check on public computers)</label>
31 <input type="hidden" name="token" value="{$token}">
32 {if="$returnurl"}<input type="hidden" name="returnurl" value="{$returnurl}">{/if}
33 </form>
34 {/if}
35 </div>
45034273
SS
36</div>
37
38{include="page.footer"}
39</body>
c133612f 40</html>