mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-12-13 22:00:29 +05:30
Check if username and password is empty during registration. (#225)
This commit is contained in:
parent
43d6dc93c0
commit
a4b6e1f804
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user