mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
fix auth time lookup
This commit is contained in:
parent
21d27c314c
commit
fd174b3459
1 changed files with 2 additions and 2 deletions
|
@ -694,8 +694,8 @@ void PostgreSQL::initializeMembers()
|
|||
"FROM ztc_sso_expiry e "
|
||||
"INNER JOIN ztc_network n "
|
||||
" ON n.id = e.network_id "
|
||||
"WHERE e.network_id = $1 AND e.member_id = $2 AND n.sso_enabled = TRUE "
|
||||
"ORDER BY e.authentication_expiry_time LIMIT 1", networkId, memberId);
|
||||
"WHERE e.network_id = $1 AND e.member_id = $2 AND n.sso_enabled = TRUE AND e.authentication_expiry_time IS NOT NULL "
|
||||
"ORDER BY e.authentication_expiry_time DESC LIMIT 1", networkId, memberId);
|
||||
|
||||
if (authRes.size() == 1 && !authRes.at(0)[0].is_null()) {
|
||||
// there is an expiry time record
|
||||
|
|
Loading…
Add table
Reference in a new issue