mirror of
https://github.com/strapi/strapi.git
synced 2025-08-07 08:16:35 +00:00
Merge pull request #14072 from strapi/fix/lost-code-merge
Put missing code back
This commit is contained in:
commit
b0da408fe8
@ -91,6 +91,18 @@ module.exports = {
|
||||
user: await sanitizeUser(user, ctx),
|
||||
});
|
||||
}
|
||||
|
||||
// Connect the user with the third-party provider.
|
||||
try {
|
||||
const user = await getService('providers').connect(provider, ctx.query);
|
||||
|
||||
return ctx.send({
|
||||
jwt: getService('jwt').issue({ id: user.id }),
|
||||
user: await sanitizeUser(user, ctx),
|
||||
});
|
||||
} catch (error) {
|
||||
throw new ApplicationError(error.message);
|
||||
}
|
||||
},
|
||||
|
||||
async changePassword(ctx) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user