diff --git a/src/AuthService.cpp b/src/AuthService.cpp index 3f1817b..78309c6 100644 --- a/src/AuthService.cpp +++ b/src/AuthService.cpp @@ -334,8 +334,12 @@ namespace OpenWifi { std::lock_guard G(Mutex_); auto It = UserCache_.find(Token); + std::cout << "Validating token" << std::endl; + if(It==UserCache_.end()) return false; + std::cout << "Token is valid" << std::endl; + WebToken = It->second.webtoken; UserInfo = It->second.userinfo; return true;