withValue used incorrectly

Closes gh-16525
Closes gh-16527

Signed-off-by: NeoTraveler <55753029+NeoTraveler@users.noreply.github.com>
This commit is contained in:
NeoTraveler 2025-02-03 20:50:37 +08:00 committed by Josh Cummings
parent 5ff87128b1
commit e31f04bebc
No known key found for this signature in database
GPG Key ID: 869B37A20E876129

View File

@ -286,7 +286,7 @@ public class DefaultLoginPageGeneratingFilter extends GenericFilterBean {
.withValue("passwordParameter", this.passwordParameter)
.withRawHtml("rememberMeInput", renderRememberMe(this.rememberMeParameter))
.withRawHtml("hiddenInputs", hiddenInputs)
.withValue("autocomplete", this.passkeysEnabled ? "autocomplete=\"password webauthn\"" : "")
.withRawHtml("autocomplete", this.passkeysEnabled ? "autocomplete=\"password webauthn\" " : "")
.render();
}