Fix member deauthorization time threshold bug.
This commit is contained in:
parent
5bd8968eb8
commit
15c6e2ec70
2 changed files with 28 additions and 24 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue