Convly fb58de9814 Cleanup strapi-admin services & domain
Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
2020-07-08 10:37:20 +02:00

18 lines
281 B
JavaScript

'use strict';
/**
* Create a new user model by merging default and specified attributes
* @param attributes A partial user object
*/
function createUser(attributes) {
return {
roles: [],
isActive: false,
...attributes,
};
}
module.exports = {
createUser,
};