frontend url in email service

This commit is contained in:
dimitar 2025-04-26 19:31:41 +02:00
parent 74c741b537
commit 066cdfc0d5

View File

@ -227,8 +227,7 @@ export class EmailService {
async sendPasswordResetEmail(email: string, name: string, token: string) {
this.logger.log("Sending password reset email to:", email);
const frontendUrl = "http://localhost:5173";
// this.configService.get<string>("FRONTEND_URL") || "http://localhost:5147";
const frontendUrl = "https://imk.mk";
const resetLink = `${frontendUrl}/reset-password?token=${token}`;
const mailOptions = {
from: this.from,
@ -267,9 +266,7 @@ export class EmailService {
border-radius: 5px;
">Ресетирај лозинка</a>
</p>
<p>This link will expire in 1 hour.</p>
<p>Линкот е валиден 1 час.</p>
<p>If you didn't request this, please ignore this email or contact support if you have concerns.</p>
<p>Доколку не сте побарале ресетирање на лозинка игнорирајте ја оваа е-пошта</p>
<p>Секое добро,<br>IMK Team</p>
</div>