Skip to content

Commit ab39506

Browse files
Add logout form in verify templates as 'back' option
1 parent d57b9c2 commit ab39506

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

packages/hidp/hidp/templates/hidp/otp/verify.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
<h1>{% translate 'Two-factor authentication' %}</h1>
88

99
<form method="post">
10-
{% csrf_token %}
11-
{{ form }}
10+
{% csrf_token %}
11+
{{ form }}
1212

13-
{% include 'hidp/includes/forms/submit_row.html' with submit_label=_('Verify') %}
13+
{% include 'hidp/includes/forms/submit_row.html' with submit_label=_('Verify') %}
1414
</form>
1515

16+
{% include 'hidp/includes/forms/logout_form.html' with logout_label=_('Back') %}
17+
1618
<p>
1719
{% url 'hidp_otp:verify-recovery-code' as recovery_code_url %}
1820
{% blocktranslate %}If you have lost your device, you can <a href="{{ recovery_code_url }}">use a recovery code</a> instead.{% endblocktranslate %}

packages/hidp/hidp/templates/hidp/otp/verify_recovery_code.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
<h1>{% translate 'Two-factor authentication' %}</h1>
88

99
<form method="post">
10-
{% csrf_token %}
11-
{{ form }}
10+
{% csrf_token %}
11+
{{ form }}
1212

13-
{% include 'hidp/includes/forms/submit_row.html' with submit_label=_('Verify') %}
13+
{% include 'hidp/includes/forms/submit_row.html' with submit_label=_('Verify') %}
1414
</form>
1515

16+
{% include 'hidp/includes/forms/logout_form.html' with logout_label=_('Back') %}
17+
1618
{% endblock %}

0 commit comments

Comments
 (0)