Fix for subscriber authentication tokens.

This commit is contained in:
stephb9959
2021-12-13 12:39:33 -08:00
parent 5124ed016c
commit 38eebe6162
2 changed files with 3 additions and 3 deletions

View File

@@ -619,8 +619,8 @@ namespace OpenWifi {
}
bool AuthService::IsValidToken(const std::string &Token, SecurityObjects::WebToken &WebToken, SecurityObjects::UserInfo &UserInfo, bool & Expired) {
std::lock_guard G(Mutex_);
std::lock_guard G(Mutex_);
Expired = false;
auto Client = UserCache_.get(Token);
@@ -649,7 +649,7 @@ namespace OpenWifi {
return true;
}
}
return false;
return IsValidSubToken(Token, WebToken, UserInfo, Expired);
}
bool AuthService::IsValidSubToken(const std::string &Token, SecurityObjects::WebToken &WebToken, SecurityObjects::UserInfo &UserInfo, bool & Expired) {