intent/templates/account/login.html

21 lines
808 B
HTML
Raw Normal View History

{% extends "account/base_entrance.html" %}
{% comment %}
Replaces allauth's password form: regular users have no password.
The email form posts straight to the login-code view.
{% endcomment %}
{% block head_title %}Sign in{% endblock head_title %}
{% block content %}
<h1>Sign in</h1>
<form method="post" action="{% url 'account_request_login_code' %}">
{% csrf_token %}
<p>
<label for="id_email">Email address</label>
<input type="email" name="email" id="id_email" autocomplete="email" required>
</p>
{{ redirect_field }}
<p><button type="submit">Email me a sign-in code</button></p>
</form>
<p>New here? <a href="{{ signup_url }}">Create an account</a>.</p>
{% include "socialaccount/snippets/login.html" with page_layout="entrance" %}
{% endblock content %}