We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66b3ed1 commit 64c428fCopy full SHA for 64c428f
src/main/java/ru/mystamps/web/support/spring/security/SecurityConfig.java
@@ -133,15 +133,15 @@ protected void configure(HttpSecurity http) throws Exception {
133
.hasAuthority(StringAuthority.IMPORT_SERIES_SALES)
134
.anyRequest().permitAll()
135
.and()
136
- .formLogin()
+ .formLogin(formLogin -> formLogin
137
.loginPage(AccountUrl.AUTHENTICATION_PAGE)
138
.usernameParameter("login")
139
.passwordParameter("password")
140
.loginProcessingUrl(AccountUrl.LOGIN_PAGE)
141
.failureUrl(AccountUrl.AUTHENTICATION_PAGE + "?failed")
142
.defaultSuccessUrl(SiteUrl.INDEX_PAGE, true)
143
.permitAll()
144
- .and()
+ )
145
.logout()
146
.logoutUrl(AccountUrl.LOGOUT_PAGE)
147
.logoutSuccessUrl(SiteUrl.INDEX_PAGE)
0 commit comments