Update authentication.cr

This commit is contained in:
Ryan G 2023-06-12 19:23:01 -07:00
parent 4835ed314b
commit 63c31a9217

View File

@ -39,7 +39,7 @@ module Invidious::Routes::API::V1::Authentication
end
if username.bytesize > 254
return error_json(401)
return error_json(401, "Username cannot be longer than 254 characters")
end
# See https://security.stackexchange.com/a/39851