mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-28 15:38:30 +00:00
Update authentication.cr
This commit is contained in:
parent
4835ed314b
commit
63c31a9217
@ -39,7 +39,7 @@ module Invidious::Routes::API::V1::Authentication
|
|||||||
end
|
end
|
||||||
|
|
||||||
if username.bytesize > 254
|
if username.bytesize > 254
|
||||||
return error_json(401)
|
return error_json(401, "Username cannot be longer than 254 characters")
|
||||||
end
|
end
|
||||||
|
|
||||||
# See https://security.stackexchange.com/a/39851
|
# See https://security.stackexchange.com/a/39851
|
||||||
|
Loading…
Reference in New Issue
Block a user