chore: update verification email content
This commit is contained in:
@@ -145,7 +145,7 @@ const withEmailTemplate = (content) =>
|
|||||||
<div class="gutter" style="padding: 30px">
|
<div class="gutter" style="padding: 30px">
|
||||||
<a href="https://classroomio.com" target="_blank">
|
<a href="https://classroomio.com" target="_blank">
|
||||||
<img
|
<img
|
||||||
src="https://tapaozmyjsuykgerrfkt.supabase.co/storage/v1/object/public/avatars/classroomio-logo-full.png"
|
src="https://tapaozmyjsuykgerrfkt.supabase.co/storage/v1/object/public/avatars/cio-logo-full.png"
|
||||||
alt="ClassroomIO Logo"
|
alt="ClassroomIO Logo"
|
||||||
/></a>
|
/></a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
triggerSendEmail(NOTIFICATION_NAME.VERIFY_EMAIL, {
|
triggerSendEmail(NOTIFICATION_NAME.VERIFY_EMAIL, {
|
||||||
to: $profile.email,
|
to: $profile.email,
|
||||||
profileId: $profile.id,
|
profileId: $profile.id,
|
||||||
|
fullname: $profile.fullname,
|
||||||
orgSiteName: $currentOrg.siteName
|
orgSiteName: $currentOrg.siteName
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ export const withEmailTemplate = (content: string) =>
|
|||||||
<div class="gutter" style="padding: 30px">
|
<div class="gutter" style="padding: 30px">
|
||||||
<a href="https://classroomio.com" target="_blank">
|
<a href="https://classroomio.com" target="_blank">
|
||||||
<img
|
<img
|
||||||
src="https://tapaozmyjsuykgerrfkt.supabase.co/storage/v1/object/public/avatars/classroomio-logo-full.png"
|
src="https://tapaozmyjsuykgerrfkt.supabase.co/storage/v1/object/public/avatars/cio-logo-full.png"
|
||||||
alt="ClassroomIO Logo"
|
alt="ClassroomIO Logo"
|
||||||
/></a>
|
/></a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import sendEmail from '$mail/sendEmail';
|
|||||||
const supabase = getSupabase();
|
const supabase = getSupabase();
|
||||||
|
|
||||||
export async function POST({ request }) {
|
export async function POST({ request }) {
|
||||||
const { to, profileId, orgSiteName } = await request.json();
|
const { to, profileId, orgSiteName, fullname } = await request.json();
|
||||||
const accessToken = request.headers.get('Authorization');
|
const accessToken = request.headers.get('Authorization');
|
||||||
console.log('/POST api/email/verify_email', to, profileId);
|
console.log('/POST api/email/verify_email', to, profileId);
|
||||||
|
|
||||||
@@ -38,13 +38,15 @@ export async function POST({ request }) {
|
|||||||
const emailData = [
|
const emailData = [
|
||||||
{
|
{
|
||||||
to,
|
to,
|
||||||
subject: '[ClassroomIO]: Verify your email',
|
subject: 'Action Required: Confirm your email',
|
||||||
content: `
|
content: `
|
||||||
<p>Thank you for signing up</p>
|
<p><strong>Hi ${fullname} 👋</strong></p>
|
||||||
<p>To verify your email, please click the <strong>Verify</strong> button below </p>
|
<p>Welcome to ClassroomIO, new friend! In order to get your account ready for usage, we need to verify your email. </p>
|
||||||
|
<p>We do this to make sure we don't get fake user emails in our signup. To get the best out of our product, we'll need you to verify your email by clicking the <strong>Verify</strong> button below
|
||||||
|
</p>
|
||||||
<div>
|
<div>
|
||||||
<a class="button" href="${verificationLink}">Verify</a>
|
<a class="button" href="${verificationLink}">Verify</a>
|
||||||
</div>
|
</div>
|
||||||
`,
|
`,
|
||||||
isPersonalEmail: true
|
isPersonalEmail: true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
siteName?: string;
|
siteName?: string;
|
||||||
goal?: string;
|
goal?: string;
|
||||||
source?: string;
|
source?: string;
|
||||||
locale?: string;
|
locale?: LOCALE;
|
||||||
metadata?: {};
|
metadata?: {};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
fullname: '',
|
fullname: '',
|
||||||
orgName: '',
|
orgName: '',
|
||||||
siteName: '',
|
siteName: '',
|
||||||
locale: ''
|
locale: LOCALE.EN
|
||||||
};
|
};
|
||||||
let errors: OnboardingField = {};
|
let errors: OnboardingField = {};
|
||||||
let progress = 50;
|
let progress = 50;
|
||||||
@@ -212,6 +212,7 @@
|
|||||||
triggerSendEmail(NOTIFICATION_NAME.VERIFY_EMAIL, {
|
triggerSendEmail(NOTIFICATION_NAME.VERIFY_EMAIL, {
|
||||||
to: $profile.email,
|
to: $profile.email,
|
||||||
profileId: $profile.id,
|
profileId: $profile.id,
|
||||||
|
fullname: $profile.fullname,
|
||||||
orgSiteName: fields.siteName
|
orgSiteName: fields.siteName
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user