Update WebSecurityConfig.java
This commit is contained in:
		
							parent
							
								
									1b1ba05a50
								
							
						
					
					
						commit
						8177e74307
					
				| @ -17,15 +17,18 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { | ||||
| 
 | ||||
|     @Override | ||||
|     protected void configure(AuthenticationManagerBuilder auth) throws Exception { | ||||
|         auth.userDetailsService(userDetailsService).passwordEncoder(new BCryptPasswordEncoder()); | ||||
|         auth | ||||
|             .userDetailsService(userDetailsService) | ||||
|             .passwordEncoder(new BCryptPasswordEncoder()); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     protected void configure(HttpSecurity http) throws Exception { | ||||
|         http.authorizeRequests() | ||||
|         http | ||||
|             .authorizeRequests() | ||||
|                 .antMatchers("/").permitAll() | ||||
|                 .anyRequest().authenticated() | ||||
|                 .and() | ||||
|                 .formLogin(); | ||||
|             .and() | ||||
|             .formLogin(); | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user