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