mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-31 08:25:38 +00:00
yet another query fix
This commit is contained in:
parent
7ca2ecb421
commit
21965ac8e8
@ -333,7 +333,7 @@ std::string PostgreSQL::getSSOAuthURL(const nlohmann::json &member)
|
|||||||
// find an unused nonce, if one exists.
|
// find an unused nonce, if one exists.
|
||||||
pqxx::result r = w.exec_params("SELECT nonce FROM ztc_sso_expiry "
|
pqxx::result r = w.exec_params("SELECT nonce FROM ztc_sso_expiry "
|
||||||
"WHERE network_id = $1 AND member_id = $2 "
|
"WHERE network_id = $1 AND member_id = $2 "
|
||||||
"AND authentication_expiry_time IS NULL AND ((NOW() AT TIME ZONE 'UTC') <= nonce_expiry)",
|
"AND authentication_expiry_time IS NULL AND ((NOW() AT TIME ZONE 'UTC') <= nonce_expiration)",
|
||||||
networkId, memberId);
|
networkId, memberId);
|
||||||
|
|
||||||
if (r.size() == 1) {
|
if (r.size() == 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user