Fix GenerateOneTimeTokenWebFilter double publish of chain.filter(...)

closes gh-16458

Signed-off-by: Daniel Garnier-Moiroux <git@garnier.wf>
This commit is contained in:
Daniel Garnier-Moiroux 2025-01-21 15:45:57 +01:00 committed by Rob Winch
parent 028c212be4
commit bb8e757c4b
No known key found for this signature in database
1 changed files with 0 additions and 1 deletions

View File

@ -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()))