Skip to content

Commit

Permalink
Fix emailService
Browse files Browse the repository at this point in the history
ltan02 committed Apr 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 4901be0 commit 91a54f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emailService/src/handlers/cognitoCustomMessage.mjs
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ export const cognitoCustomMessageHandler = async (event) => {
const email = encodeURIComponent(event.request.userAttributes["email"]);
const verificationCode = event.request.codeParameter;

const verificationLink = `http://localhost:8000/api/v1/auth/email-verify/?email=${email}&code=${verificationCode}`;
const verificationLink = `https://www.api.auction.microvaninc.com/v1/auth/email-verify/?email=${email}&code=${verificationCode}`;

const emailContent = `
<html>
@@ -125,7 +125,7 @@ export const cognitoCustomMessageHandler = async (event) => {
and Conditions.
</p>
<div class="button-container">
<a href="${verificationLink}" class="button-link">Click here to verify</a>
<a href="${verificationLink}" class="button-link" style="color: #ffffff !important; text-decoration: none !important;">Click here to verify</a>
</div>
<p>
If the button does not work, use this link or copy this link into your browser: <br /><a

0 comments on commit 91a54f0

Please sign in to comment.