Fix policy error

This commit is contained in:
Jim LAURIE 2018-08-06 16:59:14 +02:00
parent af83fdb867
commit 70e9523ba8
3 changed files with 3 additions and 3 deletions

View File

@ -51,4 +51,4 @@
"npm": ">= 5.0.0"
},
"license": "MIT"
}
}

View File

@ -43,7 +43,7 @@ module.exports = async (ctx, next) => {
return ctx.request.graphql = strapi.errors.forbidden();
}
ctx.forbidden();
return ctx.forbidden();
}
// Execute the policies.

View File

@ -134,7 +134,7 @@ const getProfile = async (provider, query, callback) => {
callback(err);
} else {
// Combine username and discriminator because discord username is not unique
var username = body.username + '#' + body.discriminator;
var username = `${body.username}#${body.discriminator}`;
callback(null, {
username: username,
email: body.email