auth: check username/password is empty string by corgiboygsj · Pull Request #1402 · apache/hugegraph
|
|
||
| if (StringUtils.isEmpty(username) || StringUtils.isEmpty(password)) { | ||
| throw new BadRequestException( | ||
| "Invalid syntax for username and password"); |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
align with BadRequestException
| final String password = values[1]; | ||
| assert username != null && password != null; | ||
|
|
||
| if (StringUtils.isEmpty(username) || StringUtils.isEmpty(password)) { |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also check for user-create
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters