mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
Remove pointless check.
This commit is contained in:
parent
0872012cd9
commit
0cf62d334d
1 changed files with 12 additions and 14 deletions
|
@ -1367,7 +1367,6 @@ void EmbeddedNetworkController::_request(
|
||||||
std::string memberId = member["id"];
|
std::string memberId = member["id"];
|
||||||
fprintf(stderr, "ssoEnabled && !ssoExempt %s-%s\n", nwids, memberId.c_str());
|
fprintf(stderr, "ssoEnabled && !ssoExempt %s-%s\n", nwids, memberId.c_str());
|
||||||
uint64_t authenticationExpiryTime = (int64_t)OSUtils::jsonInt(member["authenticationExpiryTime"], 0);
|
uint64_t authenticationExpiryTime = (int64_t)OSUtils::jsonInt(member["authenticationExpiryTime"], 0);
|
||||||
if (authenticationExpiryTime > 0) {
|
|
||||||
fprintf(stderr, "authExpiryTime: %lld\n", authenticationExpiryTime);
|
fprintf(stderr, "authExpiryTime: %lld\n", authenticationExpiryTime);
|
||||||
if (authenticationExpiryTime < now) {
|
if (authenticationExpiryTime < now) {
|
||||||
if (!authenticationURL.empty()) {
|
if (!authenticationURL.empty()) {
|
||||||
|
@ -1383,7 +1382,6 @@ void EmbeddedNetworkController::_request(
|
||||||
_db.memberExpiring(authenticationExpiryTime, nwid, identity.address().toInt());
|
_db.memberExpiring(authenticationExpiryTime, nwid, identity.address().toInt());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (authorized) {
|
if (authorized) {
|
||||||
// Update version info and meta-data if authorized and if this is a genuine request
|
// Update version info and meta-data if authorized and if this is a genuine request
|
||||||
|
|
Loading…
Add table
Reference in a new issue