Skip to content

Commit

Permalink
Fix a bug with auth calls that send a false API secret
Browse files Browse the repository at this point in the history
  • Loading branch information
sulkaharo authored and ivalkou committed Apr 8, 2021
1 parent d6598d7 commit 11283dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/authorization/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};

};
Expand Down

0 comments on commit 11283dc

Please sign in to comment.