Fix GenerateOneTimeTokenWebFilter double publish of chain.filter(...)
closes gh-16458 Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
This commit is contained in:
parent
028c212be4
commit
bb8e757c4b
|
@ -58,7 +58,6 @@ public final class GenerateOneTimeTokenWebFilter implements WebFilter {
|
|||
// @formatter:off
|
||||
return this.matcher.matches(exchange)
|
||||
.filter(ServerWebExchangeMatcher.MatchResult::isMatch)
|
||||
.switchIfEmpty(chain.filter(exchange).then(Mono.empty()))
|
||||
.then(exchange.getFormData())
|
||||
.mapNotNull((data) -> data.getFirst(USERNAME))
|
||||
.switchIfEmpty(chain.filter(exchange).then(Mono.empty()))
|
||||
|
|
Loading…
Reference in New Issue