Skip to content

Commit

Permalink
Add CLIENT_URL to Password Reset Email Content
Browse files Browse the repository at this point in the history
  • Loading branch information
mayura-andrew committed Jun 6, 2024
1 parent 136bbc1 commit b656209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { JWT_SECRET } from './configs/envConfig'
import { JWT_SECRET, CLIENT_URL } from './configs/envConfig'
import jwt from 'jsonwebtoken'
import type { Response } from 'express'
import type Mentor from './entities/mentor.entity'
Expand Down Expand Up @@ -160,7 +160,7 @@ export const getPasswordResetEmailContent = (
message: `Dear ${name},<br /><br />
We received a request to reset your password. If you did not make this request, you can ignore this email.<br /><br />
To reset your password, click the following link or paste it into your browser:<br /><br />
<a href="http://localhost:5173/resetpassword?token=${token}">http://localhost:5173/resetpassword?token=${token}</a><br /><br />
<a href="${CLIENT_URL}/resetpassword?token=${token}">${CLIENT_URL}/resetpassword?token=${token}</a><br /><br />
This link will expire in one hour. If you need to reset your password again, please submit a new request.<br /><br />
If you have any questions, please contact our support team.<br /><br />
`
Expand Down

0 comments on commit b656209

Please sign in to comment.