@Override
  public boolean login(String username, String password) throws AuthException {
    User user = userManager.getEntity(username);
    return user != null
        && password != null
        && AuthUtils.validatePassword(password, user.getPassword());
  }
Checks if a user has admin privileges
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/auth/authorizer/BasicAuthorizer.java