From 4a85198ef6c2331ddbf3c36230b599288b5454a1 Mon Sep 17 00:00:00 2001 From: Ryan G <78384369+SpongeManiac@users.noreply.github.com> Date: Mon, 12 Jun 2023 19:41:13 -0700 Subject: [PATCH] Update authentication.cr --- src/invidious/routes/api/v1/authentication.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invidious/routes/api/v1/authentication.cr b/src/invidious/routes/api/v1/authentication.cr index 502453be..2701418e 100644 --- a/src/invidious/routes/api/v1/authentication.cr +++ b/src/invidious/routes/api/v1/authentication.cr @@ -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")