From 8afebead340e18253f843f4471889dee72cfd86b Mon Sep 17 00:00:00 2001 From: Muhammad Mustafa Date: Sat, 20 Feb 2021 00:31:46 +0500 Subject: [PATCH] verify-email link fixed --- src/services/email.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/email.service.js b/src/services/email.service.js index e34f9186..fd736aa5 100644 --- a/src/services/email.service.js +++ b/src/services/email.service.js @@ -32,7 +32,7 @@ const sendEmail = async (to, subject, text) => { const sendResetPasswordEmail = async (to, token) => { const subject = 'Reset password'; // replace this url with the link to the reset password page of your front-end app - const resetPasswordUrl = `http://link-to-app/reset-password?token=${token}`; + const resetPasswordUrl = `http://link-to-app/verify-email?token=${token}`; const text = `Dear user, To reset your password, click on this link: ${resetPasswordUrl} If you did not request any password resets, then ignore this email.`; @@ -41,7 +41,7 @@ If you did not request any password resets, then ignore this email.`; const sendVerificationEmail = async (to, token) => { const subject = 'Email Verification'; // replace this url with the link to the reset password page of your front-end app - const verificationEmailUrl = `http://link-to-app/reset-password?token=${token}`; + const verificationEmailUrl = `http://link-to-app/verify-email?token=${token}`; const text = `Dear user, To verify your email, click on this link: ${verificationEmailUrl} If you did not request any email verification, then ignore this email.`;