2018-04-24 00:16:22 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load widget_tweaks %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1 class="title">Log in to your instance</h1>
|
|
|
|
|
2018-05-15 15:52:07 +02:00
|
|
|
<form method="post" action="{% url "oldlogin" %}">
|
2018-04-24 00:16:22 +02:00
|
|
|
{% csrf_token %}
|
|
|
|
<div class="field">
|
|
|
|
<label class="label">{{ form.instance.label }}</label>
|
|
|
|
<div class="control has-icons-left">
|
|
|
|
{% render_field form.instance class+="input" %}
|
|
|
|
<span class="icon is-small is-left">
|
|
|
|
<i class="fa fa-mastodon"></i>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
2018-08-28 18:22:20 +02:00
|
|
|
<label class="label">{{ form.email.label }}</label>
|
2018-04-24 00:16:22 +02:00
|
|
|
<div class="control has-icons-left">
|
2018-08-28 18:22:20 +02:00
|
|
|
{% render_field form.email class+="input" %}
|
2018-04-24 00:16:22 +02:00
|
|
|
<span class="icon is-small is-left">
|
|
|
|
<i class="fa fa-user"></i>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field" >
|
|
|
|
<label class="label" >{{ form.password.label }}</label>
|
|
|
|
<div class="control has-icons-left" >
|
|
|
|
{% render_field form.password class+="input" type="password" %}
|
|
|
|
<span class="icon is-small is-left">
|
|
|
|
<i class="fa fa-lock" ></i>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<input type="submit" name="log_in"
|
|
|
|
value="Log in" class="button is-primary" >
|
|
|
|
</div>
|
|
|
|
</form>
|
2018-07-18 19:33:16 +02:00
|
|
|
{% if form.errors %}
|
|
|
|
<p class="error">
|
|
|
|
{{ form.non_field_errors | escape }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2018-04-24 00:16:22 +02:00
|
|
|
|
|
|
|
<div class="notification">
|
|
|
|
<button class="delete"></button>
|
|
|
|
<p>
|
|
|
|
This information is only used to log you in to your instance for the
|
|
|
|
first time. Brutaldon never stores your username and password; it
|
|
|
|
only uses it to acquire a token which you can disable from the
|
2018-05-15 15:52:07 +02:00
|
|
|
settings page of your Mastodon instance. However, you do need to
|
|
|
|
absolutely trust the person running this copy of brutaldon! If that's
|
|
|
|
not the case, use the <a href="{% url "login" %}">OAuth login form</a>.
|
2018-04-24 00:16:22 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|