OXYGENHUB
# 5501b1c657b2 oxygenhub / templates / login.html
1.8 KiB · HTML · last changed feat(web): the mark, ripples, the swarm and adrift (closes #167) 23 days ago source blame history raw
1
{% extends "base.html" %}
2
{% block title %}Sign in{% endblock %}
3
{% block content %}
4
{# The mark (docs/backgrounds.md §2): brand only, no data. #}
5
<script type="application/json" id="backdrop-data">{"scene":"mark"}</script>
6
{% include "backdrop.html" %}
7
<div class="head"><h1>Sign in <small>{{ shell.site }}</small></h1></div>
8
{% if reset %}<p class="note">Your password is set. Sign in with it; every other session was signed out.</p>{% endif %}
9
{% if let Some(e) = error %}<p class="error">{{ e }}</p>{% endif %}
10
<form class="card" method="post" action="/login">
11
  <input type="hidden" name="next" value="{{ next }}">
12
  {% if let Some(u) = totp_for %}
13
  <input type="hidden" name="username" value="{{ u }}">
14
  <input type="hidden" name="password" value="" id="pw">
15
  <p>Signed in as <strong>{{ u }}</strong>. Enter the six-digit code from your authenticator app, or a recovery code.</p>
16
  <label for="code">Code</label><input type="text" id="code" name="code" autocomplete="one-time-code" inputmode="numeric" autofocus>
17
  <label for="password2">Password (again, to keep this step honest)</label><input type="password" id="password2" name="password" autocomplete="current-password">
18
  {% else %}
19
  <label for="username">Username</label><input type="text" id="username" name="username" autocomplete="username" autofocus required>
20
  <label for="password">Password</label><input type="password" id="password" name="password" autocomplete="current-password" required>
21
  {% endif %}
22
  <button type="submit">SIGN IN</button>
23
</form>
24
{% 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 %}
25
<p class="small mute"><a href="/login/reset">Forgot your password?</a> · No account? <a href="/register">Register</a>.</p>
26
{% endblock %}