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