qiaojialin commented on a change in pull request #1975:
URL: https://github.com/apache/iotdb/pull/1975#discussion_r519147953
##########
File path:
server/src/main/java/org/apache/iotdb/db/auth/authorizer/BasicAuthorizer.java
##########
@@ -102,7 +102,7 @@ public static IAuthorizer getInstance() throws
AuthException {
@Override
public boolean login(String username, String password) throws AuthException {
User user = userManager.getUser(username);
- return user != null &&
user.getPassword().equals(AuthUtils.encryptPassword(password));
+ return user != null && password!=null &&
user.getPassword().equals(AuthUtils.encryptPassword(password));
Review comment:
```suggestion
return user != null && password != null &&
user.getPassword().equals(AuthUtils.encryptPassword(password));
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]