From 11283dcd384db48991ed8d2262beee0286797f6d Mon Sep 17 00:00:00 2001 From: Sulka Haro Date: Sun, 27 Dec 2020 13:48:59 +0200 Subject: [PATCH] Fix a bug with auth calls that send a false API secret --- lib/authorization/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/authorization/index.js b/lib/authorization/index.js index f6c45802459..e5ea3f47871 100644 --- a/lib/authorization/index.js +++ b/lib/authorization/index.js @@ -206,7 +206,7 @@ function init (env, ctx) { console.error('Resolving secret/token to permissions failed'); addFailedRequest(data.ip); - callback('All validation failed', {}); + if (callback) { callback('All validation failed', {}); } return {}; };