stephb9959
2022-08-10 16:33:14 -07:00
parent de6abed9ae
commit d0ba0eac22
2 changed files with 2 additions and 1 deletions

2
build
View File

@@ -1 +1 @@
5
6

View File

@@ -4745,6 +4745,7 @@ namespace OpenWifi {
inline bool RESTAPIHandler::IsAuthorized( bool & Expired , [[maybe_unused]] bool & Contacted , bool Sub ) {
if(Internal_ && Request->has("X-INTERNAL-NAME")) {
auto Allowed = MicroService::instance().IsValidAPIKEY(*Request);
Contacted = true;
if(!Allowed) {
if(Server_.LogBadTokens(false)) {
Logger_.debug(fmt::format("I-REQ-DENIED({}): Method={} Path={}",