@optimiser/common 1.0.374 → 1.0.375
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.
- package/dist/lib/utility.js +3 -3
- package/package.json +1 -1
package/dist/lib/utility.js
CHANGED
|
@@ -3351,11 +3351,11 @@ exports.ConvertJsonToXLXS = ConvertJsonToXLXS;
|
|
|
3351
3351
|
function SendResetPasswordMail(db, userDetails, type) {
|
|
3352
3352
|
if (type === void 0) { type = "newUser"; }
|
|
3353
3353
|
return __awaiter(this, void 0, void 0, function () {
|
|
3354
|
-
var Email, FirstName, Phone, LastName, Mobile, UserStatus, _id, companyId, CreatedBy, dbObj, hash, SetSessionObject, imagepath, mailObj;
|
|
3354
|
+
var Email, FirstName, Phone, LastName, Mobile, UserStatus, _id, companyId, CreatedBy, userName, dbObj, hash, SetSessionObject, imagepath, mailObj;
|
|
3355
3355
|
return __generator(this, function (_a) {
|
|
3356
3356
|
switch (_a.label) {
|
|
3357
3357
|
case 0:
|
|
3358
|
-
Email = userDetails.Email, FirstName = userDetails.FirstName, Phone = userDetails.Phone, LastName = userDetails.LastName, Mobile = userDetails.Mobile, UserStatus = userDetails.UserStatus, _id = userDetails._id, companyId = userDetails.companyId, CreatedBy = userDetails.CreatedBy;
|
|
3358
|
+
Email = userDetails.Email, FirstName = userDetails.FirstName, Phone = userDetails.Phone, LastName = userDetails.LastName, Mobile = userDetails.Mobile, UserStatus = userDetails.UserStatus, _id = userDetails._id, companyId = userDetails.companyId, CreatedBy = userDetails.CreatedBy, userName = userDetails.userName;
|
|
3359
3359
|
dbObj = {
|
|
3360
3360
|
FirstName: FirstName,
|
|
3361
3361
|
Mobile: Mobile,
|
|
@@ -3386,7 +3386,7 @@ function SendResetPasswordMail(db, userDetails, type) {
|
|
|
3386
3386
|
else {
|
|
3387
3387
|
mailObj.subject = "Welcome to ".concat(constants_1.default.ProjectName, ": Please activate your account");
|
|
3388
3388
|
//QPC-7971: called MailTemplateStructure for email body. and updated the link
|
|
3389
|
-
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. 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>"));
|
|
3389
|
+
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
3390
|
}
|
|
3391
3391
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
3392
3392
|
(0, mail_1.SendMail)(mailObj).then(function (status) {
|