Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
2968:3e0567e02577 | 2969:16c71457ed43 |
---|---|
6 </head> | 6 </head> |
7 | 7 |
8 <body> | 8 <body> |
9 <form method="POST" action="/flys/login" id="authentication"> | 9 <form method="POST" action="/flys/login" id="authentication"> |
10 <h1>FLYS Anmeldung</h1> | 10 <h1>FLYS Anmeldung</h1> |
11 <% String error = request.getParameter("error"); %> | |
12 <% if (error != null) { %> | |
13 <div class="error"> | |
14 <h2>Authentifizierung fehlgeschlagen</h2> | |
15 <div class="details"> | |
16 <%= error %> | |
17 </div> | |
18 </div> | |
19 <% } %> | |
11 <div>Bitte geben Sie eine Benutzerkennung und ein Passwort ein.</div> | 20 <div>Bitte geben Sie eine Benutzerkennung und ein Passwort ein.</div> |
12 <table> | 21 <table> |
13 <tr> | 22 <tr> |
14 <td><label for="username">Benutzername: </label></td> | 23 <td><label for="username">Benutzername: </label></td> |
15 <td><input type="text" name="username" /></td> | 24 <td><input type="text" name="username" /></td> |