diff --git a/src/main/java/me/kavin/piped/utils/ResponseHelper.java b/src/main/java/me/kavin/piped/utils/ResponseHelper.java index dbeafbf..c62676f 100644 --- a/src/main/java/me/kavin/piped/utils/ResponseHelper.java +++ b/src/main/java/me/kavin/piped/utils/ResponseHelper.java @@ -520,7 +520,7 @@ public class ResponseHelper { if (Constants.DISABLE_REGISTRATION) return Constants.mapper.writeValueAsBytes(new DisabledRegistrationResponse()); - if (user == null || pass == null) + if (StringUtils.isBlank(user) || StringUtils.isBlank(pass)) return Constants.mapper.writeValueAsBytes(new InvalidRequestResponse()); user = user.toLowerCase();