update userProfil & logout
This commit is contained in:
@@ -24,7 +24,7 @@ public class WebSecurityConfig{
|
||||
.anyRequest().authenticated())
|
||||
.formLogin((form) -> form.loginPage("/login").defaultSuccessUrl("/", true))
|
||||
.logout((logout) -> logout.clearAuthentication(true).invalidateHttpSession(true)
|
||||
.deleteCookies("JSESSIONID").logoutSuccessUrl("/logout")
|
||||
.deleteCookies("JSESSIONID").logoutSuccessUrl("/login")
|
||||
.logoutRequestMatcher(new AntPathRequestMatcher("/logout")).permitAll());
|
||||
|
||||
return http.build();
|
||||
|
||||
Reference in New Issue
Block a user