mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2026-04-09 14:52:10 -07:00
sso query fix in controller
This commit is contained in:
parent
78b25f4ae2
commit
dd6e69f530
1 changed files with 1 additions and 1 deletions
|
|
@ -512,7 +512,7 @@ AuthInfo CentralDB::getSSOAuthInfo(const nlohmann::json& member, const std::stri
|
|||
|
||||
// check if the member exists first.
|
||||
pqxx::row count =
|
||||
w.exec("SELECT count(id) FROM network_memberships_ctl WHERE device_id = $1 AND network_id = $2",
|
||||
w.exec("SELECT count(*) FROM network_memberships_ctl WHERE device_id = $1 AND network_id = $2",
|
||||
pqxx::params { memberId, networkId })
|
||||
.one_row();
|
||||
if (count[0].as<int>() == 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue