Skip to content

Commit

Permalink
Merge pull request #19 from maykinmedia/feature/add-possibility-to-ov…
Browse files Browse the repository at this point in the history
…erride-error

✨ Add possibility to override the error message in the template
  • Loading branch information
SilviaAmAm authored Jan 16, 2025
2 parents b764b57 + c5a91d0 commit 2e7aaf4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions maykin_2fa/templates/maykin_2fa/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
<div id="content-main">

{% if user.is_authenticated %}
<p class="errornote">
{% blocktranslate trimmed with username=request.user.get_username %}
You are authenticated as {{ username }}, but are not authorized to
access this page. Would you like to login to a different account?
{% endblocktranslate %}
</p>
{% block autherrornote %}
<p class="errornote">
{% blocktranslate trimmed with username=request.user.get_username %}
You are authenticated as {{ username }}, but are not authorized to
access this page. Would you like to login to a different account?
{% endblocktranslate %}
</p>
{% endblock %}
{% endif %}

{% if wizard.steps.current == 'token' %}
Expand Down

0 comments on commit 2e7aaf4

Please sign in to comment.