diff flys-client/src/main/webapp/login.jsp @ 2969:16c71457ed43

Display error details to the user If an authentication fails the user should be informed about the reason. flys-client/trunk@4965 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 13 Jul 2012 06:52:33 +0000
parents 192eddbbd4cf
children a4c9296f6efa
line wrap: on
line diff
--- a/flys-client/src/main/webapp/login.jsp	Fri Jul 13 06:46:27 2012 +0000
+++ b/flys-client/src/main/webapp/login.jsp	Fri Jul 13 06:52:33 2012 +0000
@@ -8,6 +8,15 @@
     <body>
         <form method="POST" action="/flys/login" id="authentication">
             <h1>FLYS Anmeldung</h1>
+            <% String error = request.getParameter("error"); %>
+            <% if (error != null) { %>
+                <div class="error">
+                    <h2>Authentifizierung fehlgeschlagen</h2>
+                    <div class="details">
+                        <%= error %>
+                    </div>
+                </div>
+            <% } %>
             <div>Bitte geben Sie eine Benutzerkennung und ein Passwort ein.</div>
             <table>
                 <tr>

http://dive4elements.wald.intevation.org