thirdshift 0.14.0

Turn a GitHub issue into a ready-for-review pull request, unattended
{% extends "console/account_base.html" %}
{% block title %}Set your password{% endblock %}
{% block navigation %}{% endblock %}
{% block content %}
<h1>Set your password</h1>
{% if email_enabled %}
<p>Create your account or reset your password with a code sent to your email.</p>
<form class="account-form" method="post" action="/set-password/code">
  <input type="hidden" name="csrf" value="{{ csrf }}">
  <label>Email <input name="email" type="email" autocomplete="username" required></label>
  <button type="submit">Send code</button>
</form>
<p>A code lasts 15 minutes and allows 5 tries.</p>
<form class="account-form" method="post" action="/set-password">
  <input type="hidden" name="csrf" value="{{ csrf }}">
  <label>Email <input name="email" type="email" autocomplete="username" required></label>
  <label>Code <input name="code" inputmode="numeric" pattern="[0-9]{6}" maxlength="6" autocomplete="one-time-code" required></label>
  <label>New password <input name="password" type="password" autocomplete="new-password" required></label>
  <button type="submit">Set password and sign in</button>
</form>
{% else %}
<p>Email password setup is off. Ask the machine's owner to run <code>thirdshift console password --email &lt;address&gt;</code>.</p>
{% endif %}
<p><a href="/sign-in">Sign in</a></p>
{% endblock %}