Grant Limberg 4 年之前
父节点
当前提交
b16f40c0de
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      controller/PostgreSQL.cpp

+ 2 - 0
controller/PostgreSQL.cpp

@@ -699,6 +699,8 @@ void PostgreSQL::initializeMembers()
 			if (authRes.size() == 1 && !authRes.at(0)[0].is_null()) {
 				// there is an expiry time record
 				config["authenticationExpiryTime"] = authRes.at(0)[0].as<int64_t>();
+			} else {
+				config["authenticationExpiryTime"] = 0;
 			}
 
 			config["objtype"] = "member";