mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-10 10:11:47 +00:00
Integrate APP_URL in account.ts controller
This commit is contained in:
@ -13,8 +13,8 @@ export const sendVerificationEmail = async (email: string, code: number, id: str
|
|||||||
sendMail({
|
sendMail({
|
||||||
to: email,
|
to: email,
|
||||||
subject: "LicenseAPI verification code",
|
subject: "LicenseAPI verification code",
|
||||||
html: `<p>Your verification code: <b>${code}</b></p><p>Verify here: <a href="https://dash.licenseapi.de/verify/${id}/${code}">https://dash.licenseapi.de/verify/${id}/${code}</a></p>`,
|
html: `<p>Your verification code: <b>${code}</b></p><p>Verify here: <a href="${process.env.APP_URL}/verify/${id}/${code}">${process.env.APP_URL}/verify/${id}/${code}</a></p>`,
|
||||||
text: `Your verification code: ${code}\nVerify here: https://dash.licenseapi.de/verify/${id}/${code}`
|
text: `Your verification code: ${code}\nVerify here: ${process.env.APP_URL}/${id}/${code}`
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user