mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 09:00:19 +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,
|
||
|
};
|