mirror of
https://github.com/strapi/strapi.git
synced 2025-12-25 06:04:29 +00:00
FIX Creating a user in AdminUI does not properly set provider type to local
This commit is contained in:
parent
2f79437108
commit
dfca24c908
@ -91,6 +91,8 @@ module.exports = {
|
||||
ctx.request.body.role = defaultRole._id || defaultRole.id;
|
||||
}
|
||||
|
||||
ctx.request.body.provider = 'local';
|
||||
|
||||
try {
|
||||
const data = await strapi.plugins['users-permissions'].services.user.add(ctx.request.body);
|
||||
// Send 201 `created`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user