From 20b7c6073136bfa336fb0d9f57f8ae7a27093548 Mon Sep 17 00:00:00 2001 From: kimmynoto Date: Thu, 23 Apr 2026 13:59:12 +1000 Subject: [PATCH] Update auth.routes.js Task 5 (API configurable): I have updated the line 224 setting it as a live server when the user forgot the pw so it's ensure the reset password work locally and on live server as well Signed-off-by: kimmynoto --- src/Components/HMI/ui/routes/auth.routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/HMI/ui/routes/auth.routes.js b/src/Components/HMI/ui/routes/auth.routes.js index 1e4017891..51fe29e8d 100644 --- a/src/Components/HMI/ui/routes/auth.routes.js +++ b/src/Components/HMI/ui/routes/auth.routes.js @@ -221,7 +221,7 @@ module.exports = function (app) { console.log('Status Code: ' + axiosResponse.status + ' ' + axiosResponse.statusText) console.log("Server's response: ", axiosResponse.data); - enquiry = `Your new OTP is ${axiosResponse.data.otp} and click here to reset password :- http://localhost:8080/forgotPassword` + enquiry = `Your new OTP is ${axiosResponse.data.otp} and click here to reset password :- ${process.env.CLIENT_URL}/forgotPassword` await emailcontroller.send_enquiry(axiosResponse.data.email, 'Recovery Password', enquiry)