fixed format

This commit is contained in:
Mathieu Fortin 2020-03-03 17:28:47 -05:00
parent 77be697980
commit 812f540386

View File

@ -16,11 +16,14 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
protected void configure(final HttpSecurity http) throws Exception { protected void configure(final HttpSecurity http) throws Exception {
http.csrf() http.csrf()
.disable() .disable()
.authorizeRequests().anyRequest().authenticated() .authorizeRequests()
.anyRequest()
.authenticated()
.and() .and()
.formLogin().permitAll(); .formLogin()
.permitAll();
} }
@Bean @Bean
public PasswordEncoder encoder() { public PasswordEncoder encoder() {
return new BCryptPasswordEncoder(11); return new BCryptPasswordEncoder(11);