From 0a5e530425bc2a6fa7f688cff23071c4b664937e Mon Sep 17 00:00:00 2001 From: harpsdev Date: Thu, 12 Jul 2018 12:46:55 +0200 Subject: [PATCH] Fixing model.validateScope - adding missing scope parameter - renaming user to token in function body to match parameter name --- components/oauth/models.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/oauth/models.js b/components/oauth/models.js index 89f252f..d7d07cf 100644 --- a/components/oauth/models.js +++ b/components/oauth/models.js @@ -237,8 +237,8 @@ function getRefreshToken(refreshToken) { }); } -function validateScope(token, client) { - return (user.scope === scope && client.scope === scope && scope !== null) ? scope : false +function validateScope(token, client, scope) { + return (token.scope === scope && client.scope === scope && scope !== null) ? scope : false } function verifyScope(token, scope) {