From 01aaa44e89305024585cfd449e798b29ec9fa7c9 Mon Sep 17 00:00:00 2001
From: Dharmakeerthi Lasantha
Date: Wed, 11 Jan 2023 23:51:08 +0530
Subject: [PATCH] improve OTP mgt service functionalities
---
.../mgt/core/otp/mgt/service/OTPManagementServiceImpl.java | 2 +-
.../resources/email/templates/share-product-download-url.vm | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/otp/mgt/service/OTPManagementServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/otp/mgt/service/OTPManagementServiceImpl.java
index caec00197d..1417dae501 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/otp/mgt/service/OTPManagementServiceImpl.java
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/otp/mgt/service/OTPManagementServiceImpl.java
@@ -130,7 +130,7 @@ public class OTPManagementServiceImpl implements OTPManagementService {
Properties props = new Properties();
props.setProperty("first-name", downloadURLDetails.getFirstName());
- props.setProperty("download-url", downloadURLDetails.getFirstName());
+ props.setProperty("download-url", downloadURLDetails.getURL());
sendMail(props, downloadURLDetails.getEmail(),
DeviceManagementConstants.EmailAttributes.PRODUCT_DOWNLOAD_LINK_SHARING_TEMPLATE);
}
diff --git a/features/transport-mgt/email-sender/org.wso2.carbon.email.sender.feature/src/main/resources/email/templates/share-product-download-url.vm b/features/transport-mgt/email-sender/org.wso2.carbon.email.sender.feature/src/main/resources/email/templates/share-product-download-url.vm
index 965a927370..fe415078cd 100644
--- a/features/transport-mgt/email-sender/org.wso2.carbon.email.sender.feature/src/main/resources/email/templates/share-product-download-url.vm
+++ b/features/transport-mgt/email-sender/org.wso2.carbon.email.sender.feature/src/main/resources/email/templates/share-product-download-url.vm
@@ -16,7 +16,7 @@
under the License.
*#
- You have been invited to enroll your device in Entgra IoT
+ Experience Entgra IoT Server
@@ -37,11 +37,11 @@
Thank you very much for your interest in the Entgra IoT server. Please click
- Click here to download the latest release of the Entgra IoT server.
+ here to download the latest release of the Entgra IoT server.
If you need assistance, please contact us through Entgra
- contact us >
+ contact us