FIX Creating a user in AdminUI does not properly set provider type to local

This commit is contained in:
entwicklerfr 2018-10-28 00:47:09 +02:00
parent 2f79437108
commit dfca24c908

View File

@ -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`