OXYGENHUB
# 2bbdc0268c23 oxygenhub / templates / login.html
1.5 KiB · HTML · last changed Notifications that reach you, and 2FA without the password twice 22 days ago source blame history raw
19bb31ff Andy McCall ↶ 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>
34beb1a7 Andy McCall ↶ 5
{% if reset %}<p class="note">Your password is set. Sign in with it; every other session was signed out.</p>{% endif %}
19bb31ff Andy McCall ↶ 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 }}">
bff9106e Andy McCall ↶ 11
  <input type="hidden" name="pending" value="{{ pending }}">
12
  <p>Password accepted for <strong>{{ u }}</strong>. Enter the six-digit code from your authenticator app, or a recovery code.</p>
19bb31ff Andy McCall ↶ 13
  <label for="code">Code</label><input type="text" id="code" name="code" autocomplete="one-time-code" inputmode="numeric" autofocus>
14
  {% else %}
15
  <label for="username">Username</label><input type="text" id="username" name="username" autocomplete="username" autofocus required>
16
  <label for="password">Password</label><input type="password" id="password" name="password" autocomplete="current-password" required>
17
  {% endif %}
18
  <button type="submit">SIGN IN</button>
19
</form>
83940d53 Andy McCall ↶ 20
{% if !providers.is_empty() %}<div class="card signin-with"><p class="small mute">Or sign in with</p>{% for (id, name) in providers %}<a class="go" href="/login/{{ id }}">{{ name }}</a> {% endfor %}</div>{% endif %}
34beb1a7 Andy McCall ↶ 21
<p class="small mute"><a href="/login/reset">Forgot your password?</a> · No account? <a href="/register">Register</a>.</p>
19bb31ff Andy McCall ↶ 22
{% endblock %}