// Create new user.
let newUser = {
username: req.body.username,
password: passwordHashed,
salt: salt,
authorisationKey: authCode
};
// From require('UserModel');
return ModelUser.create(newUser);
var _user = new UserModel({
id: profile.id,
name: profile.name,
});
_user.save(function (err,user) {
if (err) console.log(err);
console.log("saved");
});