{% extends "console/account_base.html" %}
{% block title %}Sign in{% endblock %}
{% block navigation %}{% endblock %}
{% block content %}
<h1>Sign in</h1>
<form class="account-form" method="post" action="/sign-in">
<input type="hidden" name="csrf" value="{{ csrf }}">
<label>Email <input name="email" type="email" autocomplete="username" required></label>
<label>Password <input name="password" type="password" autocomplete="current-password" required></label>
<button type="submit">Sign in</button>
</form>
{% if email_enabled %}
<p><a href="/set-password">Set your password</a> to create an account or reset a forgotten password.</p>
{% else %}
<p>Need a password? Ask the machine's owner to run <code>thirdshift console password --email <address></code>.</p>
{% endif %}
{% endblock %}