| 1 |
{% extends "base.html" %} |
| 2 |
{% block title %}Sign in{% endblock %} |
| 3 |
{% block content %} |
| 4 |
<div class="head"><h1>Sign in <small>{{ shell.site }}</small></h1></div> |
| 5 |
{% if reset %}<p class="note">Your password is set. Sign in with it; every other session was signed out.</p>{% endif %} |
| 6 |
{% if let Some(e) = error %}<p class="error">{{ e }}</p>{% endif %} |
| 7 |
<form class="card" method="post" action="/login"> |
| 8 |
<input type="hidden" name="next" value="{{ next }}"> |
| 9 |
{% if let Some(u) = totp_for %} |
| 10 |
<input type="hidden" name="username" value="{{ u }}"> |
| 11 |
<input type="hidden" name="password" value="" id="pw"> |
| 12 |
<p>Signed in as <strong>{{ u }}</strong>. Enter the six-digit code from your authenticator app, or a recovery code.</p> |
| 13 |
<label for="code">Code</label><input type="text" id="code" name="code" autocomplete="one-time-code" inputmode="numeric" autofocus> |
| 14 |
<label for="password2">Password (again, to keep this step honest)</label><input type="password" id="password2" name="password" autocomplete="current-password"> |
| 15 |
{% else %} |
| 16 |
<label for="username">Username</label><input type="text" id="username" name="username" autocomplete="username" autofocus required> |
| 17 |
<label for="password">Password</label><input type="password" id="password" name="password" autocomplete="current-password" required> |
| 18 |
{% endif %} |
| 19 |
<button type="submit">SIGN IN</button> |
| 20 |
</form> |
| 21 |
<p class="small mute"><a href="/login/reset">Forgot your password?</a> · No account? <a href="/register">Register</a>.</p> |
| 22 |
{% endblock %} |