mirror of
https://github.com/iv-org/invidious.git
synced 2025-10-22 00:38:30 -05:00
Display "Erroneous CAPTCHA" for invalid captchas
This commit is contained in:
parent
325e013e0d
commit
eb950f7635
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user