Polish
This commit is contained in:
parent
ad91adf9dc
commit
737c48de06
|
@ -81,7 +81,9 @@ public class HttpSecurity {
|
|||
private AuthorizeExchangeBuilder authorizeExchangeBuilder;
|
||||
|
||||
private HeaderBuilder headers;
|
||||
|
||||
private HttpBasicBuilder httpBasic;
|
||||
|
||||
private FormLoginBuilder formLogin;
|
||||
|
||||
private ReactiveAuthenticationManager authenticationManager;
|
||||
|
|
|
@ -41,7 +41,8 @@ public class LoginPageGeneratingWebFilter implements WebFilter {
|
|||
private ServerWebExchangeMatcher matcher = ServerWebExchangeMatchers
|
||||
.pathMatchers(HttpMethod.GET, "/login");
|
||||
|
||||
@Override public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {
|
||||
@Override
|
||||
public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) {
|
||||
return this.matcher.matches(exchange)
|
||||
.filter(ServerWebExchangeMatcher.MatchResult::isMatch)
|
||||
.switchIfEmpty(chain.filter(exchange).then(Mono.empty()))
|
||||
|
|
Loading…
Reference in New Issue