Skip to content

Commit 8f98290

Browse files
Removed @EnableWebSecurity
1 parent 268e906 commit 8f98290

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/main/java/com/naturalprogrammer/spring/lemon/security/LemonSecurityConfig.java

+1-11
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
*
3232
* @author Sanjay Patel
3333
*/
34-
@EnableWebSecurity
3534
@EnableGlobalMethodSecurity(prePostEnabled = true)
3635
public abstract class LemonSecurityConfig extends WebSecurityConfigurerAdapter {
3736

@@ -85,16 +84,7 @@ public PasswordEncoder passwordEncoder() {
8584
return new BCryptPasswordEncoder();
8685
}
8786

88-
// /**
89-
// * In case you don't want use the email field as the login id,
90-
// * you may want to have a different userDetailsServices, and
91-
// * override this method for injecting that here.
92-
// */
93-
// @Override
94-
// protected void configure(AuthenticationManagerBuilder builder) throws Exception {
95-
// builder.userDetailsService(userDetailsService).passwordEncoder(passwordEncoder());
96-
// }
97-
//
87+
9888
/**
9989
* Security configuration, calling protected methods
10090
*/

0 commit comments

Comments
 (0)