Skip to content

Commit

Permalink
add blocks to login.html template to increase overridability
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Jan 24, 2024
1 parent 9159d1c commit 0a902b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion two_factor/templates/two_factor/core/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ <h1>{% block title %}{% trans "Login" %}{% endblock %}</h1>
enter one of these backup tokens to login to your account.{% endblocktrans %}</p>
{% endif %}

<form action="" method="post">{% csrf_token %}
<form action="" method="post">
{% block main_form_content %}
{% csrf_token %}
{% include "two_factor/_wizard_forms.html" %}

{# hidden submit button to enable [enter] key #}
Expand All @@ -37,6 +39,7 @@ <h1>{% block title %}{% trans "Login" %}{% endblock %}</h1>
{% endif %}

{% include "two_factor/_wizard_actions.html" %}
{% endblock %}
</form>

{% block 'backup_tokens' %}
Expand Down

0 comments on commit 0a902b8

Please sign in to comment.