Fix member deauthorization time threshold bug.

This commit is contained in:
Adam Ierymenko 2016-11-15 14:06:25 -08:00
parent 5bd8968eb8
commit 15c6e2ec70
2 changed files with 28 additions and 24 deletions

View file

@ -145,6 +145,8 @@ private:
if (!member.count("creationTime")) member["creationTime"] = OSUtils::now();
if (!member.count("noAutoAssignIps")) member["noAutoAssignIps"] = false;
if (!member.count("revision")) member["revision"] = 0ULL;
if (!member.count("lastDeauthorizedTime")) member["lastDeauthorizedTime"] = 0ULL;
if (!member.count("lastAuthorizedTime")) member["lastAuthorizedTime"] = 0ULL;
member["objtype"] = "member";
}
inline void _initNetwork(nlohmann::json &network)