1 // Create new user.
2 let newUser = {
3 username: req.body.username,
4 password: passwordHashed,
5 salt: salt,
6 authorisationKey: authCode
7 };
8
9 // From require('UserModel');
10 return ModelUser.create(newUser);
11