mirror of
https://github.com/strapi/strapi.git
synced 2025-10-04 21:02:43 +00:00
18 lines
281 B
JavaScript
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,
|
|
};
|