mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Add more informative error response on incorrect CAPTCHA
This commit is contained in:
parent
d185ba84bf
commit
cd482cfd89
2 changed files with 7 additions and 2 deletions
|
@ -251,7 +251,7 @@ def validate_response(challenge, token, user_id, operation, key, db)
|
|||
end
|
||||
|
||||
if challenge_user_id != user_id
|
||||
raise "Invalid token"
|
||||
raise "Invalid user"
|
||||
end
|
||||
|
||||
if expire < Time.now.to_unix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue