OXYGENHUB
# 1b3a00986a5a oxygenhub / templates / login.html
1.2 KiB · HTML · last changed Fix 2FA sign-in: the second step sent password twice 1 month ago source blame history raw
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 let Some(e) = error %}<p class="error">{{ e }}</p>{% endif %}
6
<form class="card" method="post" action="/login">
7
  <input type="hidden" name="next" value="{{ next }}">
8
  {% if let Some(u) = totp_for %}
9
  <input type="hidden" name="username" value="{{ u }}">
10
  <p>Signed in as <strong>{{ u }}</strong>. Enter the six-digit code from your authenticator app, or a recovery code.</p>
11
  <label for="code">Code</label><input type="text" id="code" name="code" autocomplete="one-time-code" inputmode="numeric" autofocus>
12
  <label for="password2">Password (again, to keep this step honest)</label><input type="password" id="password2" name="password" autocomplete="current-password">
13
  {% else %}
14
  <label for="username">Username</label><input type="text" id="username" name="username" autocomplete="username" autofocus required>
15
  <label for="password">Password</label><input type="password" id="password" name="password" autocomplete="current-password" required>
16
  {% endif %}
17
  <button type="submit">SIGN IN</button>
18
</form>
19
<p class="small mute">No account? <a href="/register">Register</a>.</p>
20
{% endblock %}