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