Remove pointless check.

This commit is contained in:
Adam Ierymenko 2021-07-26 13:38:35 -04:00
parent 0872012cd9
commit 0cf62d334d
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3

View file

@ -1367,7 +1367,6 @@ void EmbeddedNetworkController::_request(
std::string memberId = member["id"];
fprintf(stderr, "ssoEnabled && !ssoExempt %s-%s\n", nwids, memberId.c_str());
uint64_t authenticationExpiryTime = (int64_t)OSUtils::jsonInt(member["authenticationExpiryTime"], 0);
if (authenticationExpiryTime > 0) {
fprintf(stderr, "authExpiryTime: %lld\n", authenticationExpiryTime);
if (authenticationExpiryTime < now) {
if (!authenticationURL.empty()) {
@ -1383,7 +1382,6 @@ void EmbeddedNetworkController::_request(
_db.memberExpiring(authenticationExpiryTime, nwid, identity.address().toInt());
}
}
}
if (authorized) {
// Update version info and meta-data if authorized and if this is a genuine request