summaryrefslogtreecommitdiff
path: root/talerbank
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-05-07 19:06:55 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-05-07 19:07:23 +0200
commitd662aacfcf054d121ddcd1caf79c1d877f1d8fd9 (patch)
tree9b2d2e721cbb937dbb269c1c03332593a659a4db /talerbank
parent169c419c33f7ed655fd21d75e70d8e0f873d685d (diff)
downloadbank-d662aacfcf054d121ddcd1caf79c1d877f1d8fd9.tar.gz
bank-d662aacfcf054d121ddcd1caf79c1d877f1d8fd9.tar.bz2
bank-d662aacfcf054d121ddcd1caf79c1d877f1d8fd9.zip
re-add messages to indicate auth fail
Diffstat (limited to 'talerbank')
-rw-r--r--talerbank/app/templates/login.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/talerbank/app/templates/login.html b/talerbank/app/templates/login.html
index 4e0d7eb..e3081af 100644
--- a/talerbank/app/templates/login.html
+++ b/talerbank/app/templates/login.html
@@ -27,6 +27,20 @@
<article>
<div class="login-form">
<h2>Please login!</h2>
+
+ {% if form.errors %}
+ <p class="informational informational-fail">Your username and password didn't match. Please try again.</p>
+ {% endif %}
+
+ {% if next %}
+ {% if user.is_authenticated %}
+ <p class="informational informational-fail">Your account doesn't have access to this page. To proceed,
+ please login with an account that has access.</p>
+ {% else %}
+ <p class="informational informational-fail">Please login to see this page.</p>
+ {% endif %}
+ {% endif %}
+
<form method="post" class="pure-form" action="{{ url('login') }}">
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}" />
{{ form.username }}