Skip to content

Commit 1eaeaa7

Browse files
committed
fix: change verify account url in email
1 parent 0a693f3 commit 1eaeaa7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

badges/coverage.svg

Lines changed: 4 additions & 4 deletions
Loading

src/lib/__test__/mailer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('Email sending functions', () => {
4343
expect(render).toHaveBeenCalledWith(
4444
expect.objectContaining({
4545
props: expect.objectContaining({
46-
verificationUrl: `${GlobalConfig.EMAIL_FRONTEND_BASE_URL}/verify?token=${args.token}`,
46+
verificationUrl: `${GlobalConfig.EMAIL_FRONTEND_BASE_URL}/verify-account?token=${args.token}`,
4747
expiresInMinutes: args.expiresInMinutes,
4848
t: args.t,
4949
frontendUrl: GlobalConfig.EMAIL_FRONTEND_BASE_URL,

src/lib/mailer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export async function sendVerificationEmail({
2323
console.log('I am here');
2424
const emailHtml = await render(
2525
<VerificationEmail
26-
verificationUrl={`${GlobalConfig.EMAIL_FRONTEND_BASE_URL}/verify?token=${token}`}
26+
verificationUrl={`${GlobalConfig.EMAIL_FRONTEND_BASE_URL}/verify-account?token=${token}`}
2727
expiresInMinutes={expiresInMinutes}
2828
t={t}
2929
frontendUrl={GlobalConfig.EMAIL_FRONTEND_BASE_URL}

0 commit comments

Comments
 (0)