Skip to content

Commit 8f2126e

Browse files
committed
Fixed configure() to use SpringBoot's default login with a form
1 parent 64ee3c1 commit 8f2126e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SecurityInMemoryAuth/src/main/kotlin/com/hello/helloworld/securityinmemoryauth/WebSecurityConfiguration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class WebSecurityConfiguration : WebSecurityConfigurerAdapter (){
4242
.antMatchers ("/user").hasRole ("USER")
4343
.antMatchers ("/all").hasAnyRole ("ADMIN", "USER")
4444
.antMatchers ("static/css", "static/js").permitAll()
45-
.and().formLogin().loginPage("/login").usernameParameter("username").passwordParameter("password").permitAll()
45+
.and().formLogin().permitAll()
4646
.and().logout().permitAll()
4747
.and().exceptionHandling().accessDeniedPage("/403")
4848
}

0 commit comments

Comments
 (0)