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
60ef753fd1
commit
022d9f76bf
@ -19,10 +19,10 @@ module Invidious::Routes::API::V1::Authentication
|
|||||||
|
|
||||||
if creds
|
if creds
|
||||||
# user is registering
|
# user is registering
|
||||||
username = creds.username
|
username = "" if username.nil?
|
||||||
username ||= ""
|
username = creds.username.downcase
|
||||||
|
password = "" if password.nil?
|
||||||
password = creds.password
|
password = creds.password
|
||||||
password ||= ""
|
|
||||||
|
|
||||||
if username.empty?
|
if username.empty?
|
||||||
return error_json(401, "Username cannot be empty")
|
return error_json(401, "Username cannot be empty")
|
||||||
|
Loading…
Reference in New Issue
Block a user