From 0712cd744a655687efdc77ace124339a647e1447 Mon Sep 17 00:00:00 2001 From: shamalka Date: Tue, 13 Dec 2022 13:51:32 +0530 Subject: [PATCH] Remove unwanted lines --- .../core/otp/mgt/service/OTPManagementServiceImpl.java | 8 ++++---- 1 file 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 150795ccb8..985fe76486 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 @@ -85,10 +85,10 @@ public class OTPManagementServiceImpl implements OTPManagementService { try { ConnectionManagerUtil.beginDBTransaction(); this.otpManagementDAO.addOTPData(Collections.singletonList(oneTimePinDTO)); - Properties props = new Properties(); - props.setProperty("first-name", tenant.getAdminFirstName()); - props.setProperty("otp-token", oneTimePinDTO.getOtpToken()); - sendMail(props, tenant.getEmail(), DeviceManagementConstants.EmailAttributes.USER_VERIFY_TEMPLATE); +// Properties props = new Properties(); +// props.setProperty("first-name", tenant.getAdminFirstName()); +// props.setProperty("otp-token", oneTimePinDTO.getOtpToken()); +// sendMail(props, tenant.getEmail(), DeviceManagementConstants.EmailAttributes.USER_VERIFY_TEMPLATE); ConnectionManagerUtil.commitDBTransaction(); return oneTimePinDTO.getOtpToken(); } catch (TransactionManagementException e) {