mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Check if username and password is empty during registration. (#225)
This commit is contained in:
parent
43d6dc93c0
commit
a4b6e1f804
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue