Display "Erroneous CAPTCHA" for invalid captchas

This commit is contained in:
Fijxu 2025-10-08 10:38:30 -03:00
parent 325e013e0d
commit eb950f7635
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -98,6 +98,8 @@ module Invidious::Routes::Login
begin
validate_request(tokens[0], answer, env.request, HMAC_KEY, locale)
rescue ex : InfoException
return error_template(400, InfoException.new("Erroneous CAPTCHA"))
rescue ex
return error_template(400, ex)
end