mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-20 15:45:46 -04:00
Update authentication.cr
This commit is contained in:
parent
4835ed314b
commit
63c31a9217
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user