File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
src/main/java/org/woehlke/java/simpleworklist/config Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 110110## 3.0.0.rc.3
111111* #403 Task pagination is broken due to dependencies
112112* #406 Liquibase Database Schema Evolution of changes by migrating spring-boot from 2 to 3 and Jakarta EE 10 JPA
113- * #407 update Last Login Date is broken
113+ * fixed #407 update Last Login Date is broken
114114
115115## 3.0.x
116116* #377 add List of URL (Patterns) to Documentation
Original file line number Diff line number Diff line change 2020import org .springframework .web .servlet .config .annotation .EnableWebMvc ;
2121
2222import org .woehlke .java .simpleworklist .domain .security .access .ApplicationUserDetailsService ;
23+ import org .woehlke .java .simpleworklist .domain .security .login .LoginSuccessHandler ;
2324
2425@ Configuration
2526@ EnableAsync
@@ -38,14 +39,16 @@ public class WebSecurityConfig {
3839
3940 private final ApplicationUserDetailsService applicationUserDetailsService ;
4041 private final SimpleworklistProperties simpleworklistProperties ;
42+ private final LoginSuccessHandler loginSuccessHandler ;
4143
4244 @ Autowired
4345 public WebSecurityConfig (
4446 ApplicationUserDetailsService applicationUserDetailsService ,
45- SimpleworklistProperties simpleworklistProperties
46- ) {
47+ SimpleworklistProperties simpleworklistProperties ,
48+ LoginSuccessHandler loginSuccessHandler ) {
4749 this .applicationUserDetailsService = applicationUserDetailsService ;
4850 this .simpleworklistProperties = simpleworklistProperties ;
51+ this .loginSuccessHandler = loginSuccessHandler ;
4952 }
5053
5154 @ Bean
@@ -92,7 +95,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
9295 .loginProcessingUrl (simpleworklistProperties .getWebSecurity ().getLoginProcessingUrl ())
9396 .failureForwardUrl (simpleworklistProperties .getWebSecurity ().getFailureForwardUrl ())
9497 .defaultSuccessUrl (simpleworklistProperties .getWebSecurity ().getDefaultSuccessUrl ())
95- // .successHandler(authenticationSuccessHandler )
98+ .successHandler (this . loginSuccessHandler )
9699 .permitAll ()
97100 )
98101 .csrf ()
You can’t perform that action at this time.
0 commit comments