mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-29 07:58:35 +00: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
|
if creds
|
||||||
# user is registering
|
# user is registering
|
||||||
username = "" if username.nil?
|
|
||||||
username = creds.username.downcase
|
username = creds.username.downcase
|
||||||
password = "" if password.nil?
|
|
||||||
password = creds.password
|
password = creds.password
|
||||||
|
username = "" if username.nil?
|
||||||
|
password = "" if password.nil?
|
||||||
|
|
||||||
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