GWM : forgot pw changes
This commit is contained in:
parent
f6c82b253f
commit
e4b64b4add
@ -793,7 +793,7 @@ exports.forgotPasswordRequestOTP = async (req, res) => {
|
|||||||
await sendEmail(
|
await sendEmail(
|
||||||
registered_email,
|
registered_email,
|
||||||
"Password Reset OTP",
|
"Password Reset OTP",
|
||||||
`<p>Dear ${user.name},</p><p>Your OTP for password reset is <b>${otp}</b>. It is valid for 10 minutes.</p>`
|
`<p>Dear ${adminUser.name},</p><p>Your OTP for password reset is <b>${otp}</b>. It is valid for 10 minutes.</p>`
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -876,8 +876,6 @@ exports.forgotPasswordVerifyOTP = async (req, res) => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
logger.info(`Password reset successful for user=${registered_email}`);
|
logger.info(`Password reset successful for user=${registered_email}`);
|
||||||
|
|
||||||
return res.status(200).json({
|
return res.status(200).json({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user