Skip to content

Commit

Permalink
Fixed verification code message
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisischris committed Jun 9, 2024
1 parent 40a73b0 commit cd5398f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cognito/customMessageResendCode.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { formatEmail } from "../utils";

export const customMessageResendCode = async (event) => {
event.response.emailSubject = `Confirm your registration to Equalify`;
event.response.emailMessage = formatEmail({ body: `<p>${event.request.userAttributes['name']},</p><p>Please confirm your registration by <a href="https://${process.env.STAGING ? 'staging.' : ''}equalify.dev/login?username=${event.userName}&code=${event.request.codeParameter}&email=${event.request.userAttributes.email}">clicking here</a>.<p>Thank you,<br/>Equalify<div style="display:none"><a>${event.request.codeParameter}</a><a>${event.request.codeParameter}</a></div>` });
event.response.emailSubject = `Equalify Verification Code`;
event.response.emailMessage = formatEmail({ body: `<p>Hey there,</p><p>Your Equalify verification code is ${event.request.codeParameter}.</p><p>Thank you,<br/>Equalify` });
return event;
}

0 comments on commit cd5398f

Please sign in to comment.