diff --git a/app/controllers/establishment.controller.js b/app/controllers/establishment.controller.js index 627dd9f..a6ac037 100644 --- a/app/controllers/establishment.controller.js +++ b/app/controllers/establishment.controller.js @@ -1081,10 +1081,10 @@ exports.forgotPasswordRequestOTP = async (req, res) => { }); const formattedSupportPhone = formatUAEPhoneNumber(process.env.SUPPORT_PHONE); - const formattedOtp = otp.split("").join(" "); + // const formattedOtp = otp.split("").join(" "); const placeHolderData = { username: user.name, - verfication_code: formattedOtp, + verfication_code: otp, otp_expiry: 10, support_email: process.env.SUPPORT_EMAIL, support_phone: formattedSupportPhone, @@ -1260,10 +1260,10 @@ exports.requestOTPForLogin = async (req, res) => { } ); const formattedSupportPhone = formatUAEPhoneNumber(process.env.SUPPORT_PHONE); - const formattedOtp = otp.split("").join(" "); + // const formattedOtp = otp.split("").join(" "); const placeHolderData = { username: loggingUser.name, - verfication_code: formattedOtp, + verfication_code: otp, otp_expiry: 10, support_email: process.env.SUPPORT_EMAIL, support_phone: formattedSupportPhone,