mirror of https://gitlab.crans.org/bde/nk20
Color reauth warning on login page
This commit is contained in:
parent
63562d3fbb
commit
027ae5b97f
|
@ -19,13 +19,13 @@ SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
</h3>
|
</h3>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<p class="errornote">
|
<div class="alert alert-warning">
|
||||||
{% blocktrans trimmed with username=request.user.username %}
|
{% blocktrans trimmed with username=request.user.username %}
|
||||||
You are authenticated as {{ username }}, but are not authorized to
|
You are authenticated as {{ username }}, but are not authorized to
|
||||||
access this page. Would you like to login to a different account,
|
access this page. Would you like to login to a different account,
|
||||||
or with a higher permission mask?
|
or with a higher permission mask?
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</p>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if request.resolver_match.view_name == 'admin:login' %}
|
{% if request.resolver_match.view_name == 'admin:login' %}
|
||||||
|
|
Loading…
Reference in New Issue