mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
Fix policy error
This commit is contained in:
parent
af83fdb867
commit
70e9523ba8
@ -51,4 +51,4 @@
|
||||
"npm": ">= 5.0.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
}
|
||||
@ -43,7 +43,7 @@ module.exports = async (ctx, next) => {
|
||||
return ctx.request.graphql = strapi.errors.forbidden();
|
||||
}
|
||||
|
||||
ctx.forbidden();
|
||||
return ctx.forbidden();
|
||||
}
|
||||
|
||||
// Execute the policies.
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user