mirror of
https://github.com/strapi/strapi.git
synced 2025-07-15 13:02:42 +00:00
update ctx.request.body to be ctx.request.body.providers, to ensure only permissions are saved to database with no extra keys
This commit is contained in:
parent
12ee30ae92
commit
3ea2c2023f
@ -237,7 +237,7 @@ module.exports = {
|
|||||||
type: 'plugin',
|
type: 'plugin',
|
||||||
name: 'users-permissions',
|
name: 'users-permissions',
|
||||||
key: 'grant'
|
key: 'grant'
|
||||||
}).set({value: ctx.request.body});
|
}).set({value: ctx.request.body.providers});
|
||||||
|
|
||||||
ctx.send({ ok: true });
|
ctx.send({ ok: true });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user