From e8fc19a3d757007510f122a931f25c6dfadcc55d Mon Sep 17 00:00:00 2001 From: Rossen Stoyanchev Date: Thu, 6 May 2010 16:17:18 +0000 Subject: [PATCH] SWF-1219 Fix styling of errors on login pages --- .../src/main/webapp/WEB-INF/login.xhtml | 2 +- .../booking-mvc/src/main/webapp/WEB-INF/login.jsp | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/login.xhtml b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/login.xhtml index 2f1e7bee..65a947ca 100755 --- a/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/login.xhtml +++ b/spring-webflow-samples/booking-faces/src/main/webapp/WEB-INF/login.xhtml @@ -18,7 +18,7 @@
-
+
Your login attempt was not successful, try again.
Reason: #{sessionScope.SPRING_SECURITY_LAST_EXCEPTION.message}
diff --git a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/login.jsp b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/login.jsp index f464e796..1ee8e63e 100755 --- a/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/login.jsp +++ b/spring-webflow-samples/booking-mvc/src/main/webapp/WEB-INF/login.jsp @@ -5,12 +5,6 @@ <%@ page import="org.springframework.security.core.AuthenticationException" %>
- -
- Your login attempt was not successful, try again.

- Reason: <%= ((AuthenticationException) session.getAttribute(UsernamePasswordAuthenticationFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %> -
-

Valid username/passwords are:

  • keith/melbourne
  • @@ -21,6 +15,12 @@
+ +
+ Your login attempt was not successful, try again.

+ Reason: <%= ((AuthenticationException) session.getAttribute(UsernamePasswordAuthenticationFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %> +
+
" method="post">
Login Information