Skip to content

Conversation

@Fijxu
Copy link
Member

@Fijxu Fijxu commented Oct 8, 2025

Closes #5388

"Erroneous CAPTCHA" is already added to the locales, it was unused.

It could also be return error_template(400, InfoException.new("#{translate(locale, "Erroneous CAPTCHA")}: #{ex.message}")) to display more details about the error, but a simple "Erroneous CAPTCHA" seems enough to me.

Note: Using return error_template(400, InfoException.new("#{translate(locale, "Erroneous CAPTCHA")}: #{ex.message}")) will try to translate the message of InfoException, so it will always warn about a missing translation key:

2025-10-08 13:31:49 UTC [warn] i18n: Missing translation key "CAPTCHA no válido: Erroneous token"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Change "Erroneous token" message when the submitted captcha fails.

1 participant