@optimiser/common 1.0.378 → 1.0.380

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3387,7 +3387,7 @@ function SendResetPasswordMail(db, userDetails, type) {
3387
3387
  else {
3388
3388
  mailObj.subject = "Welcome to ".concat(constants_1.default.ProjectName, ": Please activate your account");
3389
3389
  //QPC-7971: called MailTemplateStructure for email body. and updated the link
3390
- mailObj.html = MailTemplateStructure("<p style=\"margin-top: 1em;\">Dear User,</p>\n <p>Congratulations! We are pleased to advise that your user profile has been created and is ready to use. Here's your unique Username: ".concat(userName, ". Just click on the link below to set up your password then you\u2019ll be ready to go.</p>\n <br>\n <p style=\"word-break: break-all;\">\n <a href='").concat(constants_1.default.ProjectDomain, "?page=SetPassword&uid=").concat(hash, "'>").concat(constants_1.default.ProjectDomain, "?page=SetPassword&uid=").concat(hash, "</a>\n </p>\n <br>\n <p>We hope that you enjoy your Optimiser platform; if you ever require assistance, our Support Team will be happy to help.</p>\n <p>Email : <a href=\"mailto:support@optimiser.com\">support@optimiser.com</a>, Phone : +44 (0)203 972 1666</p>\n <br>"));
3390
+ mailObj.html = MailTemplateStructure("<p style=\"margin-top: 1em;\">Dear User,</p>\n <p>We are pleased to advise that your user profile has been created and is ready to use. Here's your unique Username: ".concat(userName, ". Just click on the link below to set up your password then you\u2019ll be ready to go.</p>\n <br>\n <p style=\"word-break: break-all;\">\n <a href='").concat(constants_1.default.ProjectDomain, "?page=SetPassword&uid=").concat(hash, "'>").concat(constants_1.default.ProjectDomain, "?page=SetPassword&uid=").concat(hash, "</a>\n </p>\n <br>\n <p>We hope that you enjoy your Optimiser platform; if you ever require assistance, our Support Team will be happy to help.</p>\n <p>Email : <a href=\"mailto:support@optimiser.com\">support@optimiser.com</a>, Phone : +44 (0)203 972 1666</p>\n <br>"));
3391
3391
  }
3392
3392
  return [2 /*return*/, new Promise(function (resolve, reject) {
3393
3393
  (0, mail_1.SendMail)(mailObj).then(function (status) {
@@ -4785,7 +4785,8 @@ function ValidateUserInput(options) {
4785
4785
  return [2 /*return*/, "continue"];
4786
4786
  }
4787
4787
  if (IsStringValue(fieldData)) { //sanitizing Html
4788
- fieldData = (0, sanitize_html_1.default)(fieldData);
4788
+ inputFields[fieldName] = (0, sanitize_html_1.default)(fieldData);
4789
+ fieldData = inputFields[fieldName];
4789
4790
  }
4790
4791
  if ((field.UIDataType == 'date' || field.UIDataType == 'datetime') && IsStringValue(fieldData) && fieldData.trim() == '') {
4791
4792
  inputFields[fieldName] = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimiser/common",
3
- "version": "1.0.378",
3
+ "version": "1.0.380",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {