fixed format
This commit is contained in:
parent
77be697980
commit
812f540386
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user