Skip to content

Commit

Permalink
Merge pull request #94 from IGZalejandrogonzalez/master
Browse files Browse the repository at this point in the history
pass roles from request to user before creating the user
  • Loading branch information
guumaster committed Mar 11, 2016
2 parents 5177a8f + 59845b0 commit 585c4d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/managers/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ function createUserPrivateCall(body, user, cbk) {

log.info(`<= ${private_res.statusCode}`);
user.id = body.id;
user.roles = body.roles || [];

if (!user.password) {
user.password = cryptoMng.randomPassword(config.password.regexValidation);
Expand Down

0 comments on commit 585c4d5

Please sign in to comment.