This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 271270fa776 Fix default authentication of C++ Client (#13363)
271270fa776 is described below
commit 271270fa776e98f11ef97ac4ba64952b012cafaf
Author: Jiang Tian <[email protected]>
AuthorDate: Wed Sep 4 18:09:46 2024 +0800
Fix default authentication of C++ Client (#13363)
---
iotdb-client/client-cpp/src/main/Session.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iotdb-client/client-cpp/src/main/Session.h
b/iotdb-client/client-cpp/src/main/Session.h
index 56418ebcec2..d6c3bfc9a23 100644
--- a/iotdb-client/client-cpp/src/main/Session.h
+++ b/iotdb-client/client-cpp/src/main/Session.h
@@ -1004,7 +1004,7 @@ private:
void initZoneId();
public:
- Session(const std::string &host, int rpcPort) : username("user"),
password("password"), version(Version::V_1_0) {
+ Session(const std::string &host, int rpcPort) : username("root"),
password("root"), version(Version::V_1_0) {
this->host = host;
this->rpcPort = rpcPort;
initZoneId();