Color reauth warning on login page

This commit is contained in:
Alexandre Iooss 2020-08-10 13:49:53 +02:00
parent 63562d3fbb
commit 027ae5b97f
1 changed files with 2 additions and 2 deletions

View File

@ -19,13 +19,13 @@ SPDX-License-Identifier: GPL-2.0-or-later
</h3>
<div class="card-body">
{% if user.is_authenticated %}
<p class="errornote">
<div class="alert alert-warning">
{% blocktrans trimmed with username=request.user.username %}
You are authenticated as {{ username }}, but are not authorized to
access this page. Would you like to login to a different account,
or with a higher permission mask?
{% endblocktrans %}
</p>
</div>
{% endif %}
{% if request.resolver_match.view_name == 'admin:login' %}