diff --git a/booking-faces/pom.xml b/booking-faces/pom.xml index 6de1d9d..640d0b1 100644 --- a/booking-faces/pom.xml +++ b/booking-faces/pom.xml @@ -9,9 +9,9 @@ 1.0.0.BUILD-SNAPSHOT - 2.4.0.RELEASE - 4.0.5.RELEASE - 3.2.4.RELEASE + 2.4.2.BUILD-SNAPSHOT + 4.1.6.RELEASE + 4.0.1.RELEASE 1.6.1 2.2.5 5.0 diff --git a/booking-mvc/pom.xml b/booking-mvc/pom.xml index 05e4380..c65bae1 100644 --- a/booking-mvc/pom.xml +++ b/booking-mvc/pom.xml @@ -9,13 +9,13 @@ 1.0.0.BUILD-SNAPSHOT - 2.4.0.RELEASE - 4.0.5.RELEASE - 3.2.4.RELEASE + 2.4.2.BUILD-SNAPSHOT + 4.1.6.RELEASE + 4.0.1.RELEASE 1.7.5 2.1.3.RELEASE 2.1.1.RELEASE - 2.1.1.RELEASE + 2.1.2.RELEASE 2.1.1.RELEASE 2.2.2 @@ -24,7 +24,7 @@ spring Spring Repository - http://repo.spring.io/milestone + http://repo.spring.io/snapshot true true @@ -62,8 +62,8 @@ org.thymeleaf.extras - thymeleaf-extras-springsecurity3 - ${thymeleaf-extras-springsecurity3-version} + thymeleaf-extras-springsecurity4 + ${thymeleaf-extras-springsecurity4-version} org.thymeleaf.extras @@ -303,7 +303,7 @@ org.apache.tomcat.maven tomcat7-maven-plugin - 2.1 + 2.2 org.eclipse.jetty diff --git a/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/config/SecurityConfig.java b/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/config/SecurityConfig.java index c05e755..a359a85 100644 --- a/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/config/SecurityConfig.java +++ b/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/config/SecurityConfig.java @@ -4,11 +4,11 @@ import org.springframework.context.annotation.Configuration; import org.springframework.security.authentication.encoding.Md5PasswordEncoder; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework.security.config.annotation.web.builders.HttpSecurity; +import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; -import org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity; @Configuration -@EnableWebMvcSecurity +@EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override diff --git a/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/config/WebMvcConfig.java b/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/config/WebMvcConfig.java index 9977aed..38cf3e4 100644 --- a/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/config/WebMvcConfig.java +++ b/booking-mvc/src/main/java/org/springframework/webflow/samples/booking/config/WebMvcConfig.java @@ -16,7 +16,7 @@ import org.springframework.webflow.mvc.servlet.FlowHandlerMapping; import org.springframework.webflow.samples.booking.BookingFlowHandler; import org.thymeleaf.dialect.IDialect; import org.thymeleaf.extras.conditionalcomments.dialect.ConditionalCommentsDialect; -import org.thymeleaf.extras.springsecurity3.dialect.SpringSecurityDialect; +import org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect; import org.thymeleaf.extras.tiles2.dialect.TilesDialect; import org.thymeleaf.extras.tiles2.spring4.web.configurer.ThymeleafTilesConfigurer; import org.thymeleaf.extras.tiles2.spring4.web.view.FlowAjaxThymeleafTilesView; diff --git a/booking-mvc/src/main/webapp/WEB-INF/login.html b/booking-mvc/src/main/webapp/WEB-INF/login.html index 4d85943..d67df11 100644 --- a/booking-mvc/src/main/webapp/WEB-INF/login.html +++ b/booking-mvc/src/main/webapp/WEB-INF/login.html @@ -58,16 +58,10 @@ -
+
Your login attempt was not successful, try again.

- - Reason: Invalid password -
@@ -79,8 +73,7 @@


- +