mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-16 02:38:29 -06:00
Display "Erroneous CAPTCHA" for invalid captchas (#5508)
This commit is contained in:
parent
ef2290c1fd
commit
65463333f3
@ -98,6 +98,8 @@ module Invidious::Routes::Login
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
validate_request(tokens[0], answer, env.request, HMAC_KEY, locale)
|
validate_request(tokens[0], answer, env.request, HMAC_KEY, locale)
|
||||||
|
rescue ex : InfoException
|
||||||
|
return error_template(400, InfoException.new("Erroneous CAPTCHA"))
|
||||||
rescue ex
|
rescue ex
|
||||||
return error_template(400, ex)
|
return error_template(400, ex)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user