diff --git a/webgoat-container/src/main/java/org/owasp/webgoat/WebSecurityConfig.java b/webgoat-container/src/main/java/org/owasp/webgoat/WebSecurityConfig.java index 8ec0fbe01..eab88881c 100644 --- a/webgoat-container/src/main/java/org/owasp/webgoat/WebSecurityConfig.java +++ b/webgoat-container/src/main/java/org/owasp/webgoat/WebSecurityConfig.java @@ -24,13 +24,14 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { security.and() .formLogin() .loginPage("/login") - .defaultSuccessUrl("/welcome.mvc") + .defaultSuccessUrl("/welcome.mvc", true) .usernameParameter("username") .passwordParameter("password") .permitAll(); security.and() .logout() .permitAll(); + } @Autowired diff --git a/webgoat-container/src/main/resources/templates/main_new.html b/webgoat-container/src/main/resources/templates/main_new.html index ea5b6eadf..ad9585803 100644 --- a/webgoat-container/src/main/resources/templates/main_new.html +++ b/webgoat-container/src/main/resources/templates/main_new.html @@ -42,7 +42,7 @@