Changed the email message
This commit is contained in:
parent
e9a136494d
commit
56f4c8f07c
@ -50,10 +50,10 @@ exports.validateOtp = async (req, res) => {
|
|||||||
|
|
||||||
function sendMail(otp, email, req) {
|
function sendMail(otp, email, req) {
|
||||||
const mailOptions = {
|
const mailOptions = {
|
||||||
from: 'communityrule@medlab.host', // Replace with your email address
|
from: 'communityrule.app@medlab.host', // Replace with your email address
|
||||||
to: email, // Replace with the recipient's email address
|
to: email, // Replace with the recipient's email address
|
||||||
subject: 'Logging code for community rule',
|
subject: 'Login code for commnunityRule',
|
||||||
text: 'Code for logging into commnunity rule is ' + otp,
|
text: 'Login code for CommunityRule: ' + otp,
|
||||||
};
|
};
|
||||||
transporter.sendMail(mailOptions, (error, info) => {
|
transporter.sendMail(mailOptions, (error, info) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user