Do not remove the recaptcha form data because it is useless

Closes #41148

Signed-off-by: rmartinc <rmartinc@redhat.com>
This commit is contained in:
rmartinc 2025-08-08 11:59:06 +02:00 committed by Marek Posolda
parent ef312b570c
commit da5f5281cd

View File

@ -128,7 +128,6 @@ public abstract class AbstractRegistrationRecaptcha implements FormAction, FormA
List<FormMessage> errors = new ArrayList<>();
errors.add(new FormMessage(null, Messages.RECAPTCHA_FAILED));
formData.remove(G_RECAPTCHA_RESPONSE);
context.error(Errors.INVALID_REGISTRATION);
context.validationError(formData, errors);
context.excludeOtherErrors();