mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2026-01-27 10:23:15 +00:00
Fix for subscriber authentication tokens.
This commit is contained in:
@@ -682,6 +682,7 @@ _OWDEBUG_
|
||||
if(RevocationDate!=0)
|
||||
return false;
|
||||
_OWDEBUG_
|
||||
std::cout << "UInfo:" << UInfo.userinfo.Id << std::endl;
|
||||
Expired = (UInfo.webtoken.created_ + UInfo.webtoken.expires_in_) < std::time(nullptr);
|
||||
_OWDEBUG_
|
||||
if(StorageService()->GetSubUserById(UInfo.userinfo.Id,UInfo.userinfo)) {
|
||||
|
||||
@@ -63,6 +63,9 @@ namespace OpenWifi {
|
||||
Poco::Data::Keywords::into(RevocationDate),
|
||||
Poco::Data::Keywords::use(Token);
|
||||
Select.execute();
|
||||
|
||||
if(Select.rowsExtracted()!=1)
|
||||
return false;
|
||||
return true;
|
||||
} catch (const Poco::Exception &E) {
|
||||
Logger().log(E);
|
||||
|
||||
Reference in New Issue
Block a user