|
|
|
@ -172,6 +172,7 @@ exports.addUser = async (req, reply) => {
|
|
|
|
|
var customer_id = `AWSU${building}${c_id}`
|
|
|
|
|
// console.log("This is the reply in the handler after the validations", reply);
|
|
|
|
|
userData = {
|
|
|
|
|
installationId:req.params.installationId,
|
|
|
|
|
customerId: customer_id,
|
|
|
|
|
username: req.body.username,
|
|
|
|
|
emails: req.body.emails,
|
|
|
|
@ -208,6 +209,7 @@ exports.addUser = async (req, reply) => {
|
|
|
|
|
if (checkFormEncoding.isUserFormUrlEncoded) {
|
|
|
|
|
usertobeInserted = checkFormEncoding.user;
|
|
|
|
|
console.log("thsi true url string");
|
|
|
|
|
user.installationId = usertobeInserted.installationId;
|
|
|
|
|
user.username = usertobeInserted.username;
|
|
|
|
|
user.firstName = usertobeInserted.firstName;
|
|
|
|
|
user.lastName = usertobeInserted.lastName;
|
|
|
|
|