From 7c23dc97716cf1de11898214f855d88a45e07958 Mon Sep 17 00:00:00 2001 From: Soxasora Date: Tue, 14 Jan 2025 14:50:43 +0100 Subject: [PATCH] better email template --- pages/api/auth/[...nextauth].js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pages/api/auth/[...nextauth].js b/pages/api/auth/[...nextauth].js index bf5f8297b..7ef1568ca 100644 --- a/pages/api/auth/[...nextauth].js +++ b/pages/api/auth/[...nextauth].js @@ -398,6 +398,7 @@ async function sendVerificationRequest ({ const { server, from } = provider const site = new URL(url).host + // const isPWA = new URL(url).searchParams.get('pwa') === 'true' nodemailer.createTransport(server).sendMail( { @@ -446,13 +447,17 @@ const html = ({ url, token, site, email }) => {
- login as ${escapedEmail} + login with ${escapedEmail}
+ + @@ -461,9 +466,13 @@ const html = ({ url, token, site, email }) => { -
+ using the app? copy the magic code +
${token}
+ + +
+ on browser? click the button below +
login