SWF-1219 Fix styling of errors on login pages

This commit is contained in:
Rossen Stoyanchev
2010-05-06 16:17:18 +00:00
parent adfe21f66f
commit e8fc19a3d7
2 changed files with 7 additions and 7 deletions

View File

@@ -18,7 +18,7 @@
<div class="span-10 append-2 last">
<c:if test="${not empty param.login_error}">
<div class="errors">
<div class="error">
Your login attempt was not successful, try again.<br />
Reason: #{sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}
</div>

View File

@@ -5,12 +5,6 @@
<%@ page import="org.springframework.security.core.AuthenticationException" %>
<div class="span-5">
<c:if test="${not empty param.login_error}">
<div class="errors">
Your login attempt was not successful, try again.<br /><br />
Reason: <%= ((AuthenticationException) session.getAttribute(UsernamePasswordAuthenticationFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>
</div>
</c:if>
<p>Valid username/passwords are:</p>
<ul>
<li>keith/melbourne</li>
@@ -21,6 +15,12 @@
</div>
<div class="span-10 append-2 last">
<c:if test="${not empty param.login_error}">
<div class="error">
Your login attempt was not successful, try again.<br /><br />
Reason: <%= ((AuthenticationException) session.getAttribute(UsernamePasswordAuthenticationFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>
</div>
</c:if>
<form name="f" action="<c:url value="/spring/loginProcess" />" method="post">
<fieldset>
<legend>Login Information</legend>