Update authentication.cr

This commit is contained in:
Ryan G 2023-06-12 23:49:19 -07:00
parent 3a7734cb2f
commit b2c0adbcdd

View File

@ -9,6 +9,7 @@ module Invidious::Routes::API::V1::Authentication
end
# get user info
if creds
locale = env.get("preferences").as(Preferences).locale
username = creds.username.downcase
password = creds.password
username = "" if username.nil?