chore: update verification email content
This commit is contained in:
@@ -145,7 +145,7 @@ const withEmailTemplate = (content) =>
|
||||
<div class="gutter" style="padding: 30px">
|
||||
<a href="https://classroomio.com" target="_blank">
|
||||
<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"
|
||||
/></a>
|
||||
</div>
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
triggerSendEmail(NOTIFICATION_NAME.VERIFY_EMAIL, {
|
||||
to: $profile.email,
|
||||
profileId: $profile.id,
|
||||
fullname: $profile.fullname,
|
||||
orgSiteName: $currentOrg.siteName
|
||||
});
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ export const withEmailTemplate = (content: string) =>
|
||||
<div class="gutter" style="padding: 30px">
|
||||
<a href="https://classroomio.com" target="_blank">
|
||||
<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"
|
||||
/></a>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@ import sendEmail from '$mail/sendEmail';
|
||||
const supabase = getSupabase();
|
||||
|
||||
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');
|
||||
console.log('/POST api/email/verify_email', to, profileId);
|
||||
|
||||
@@ -38,13 +38,15 @@ export async function POST({ request }) {
|
||||
const emailData = [
|
||||
{
|
||||
to,
|
||||
subject: '[ClassroomIO]: Verify your email',
|
||||
subject: 'Action Required: Confirm your email',
|
||||
content: `
|
||||
<p>Thank you for signing up</p>
|
||||
<p>To verify your email, please click the <strong>Verify</strong> button below </p>
|
||||
<p><strong>Hi ${fullname} 👋</strong></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>
|
||||
<a class="button" href="${verificationLink}">Verify</a>
|
||||
</div>
|
||||
</div>
|
||||
`,
|
||||
isPersonalEmail: true
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
siteName?: string;
|
||||
goal?: string;
|
||||
source?: string;
|
||||
locale?: string;
|
||||
locale?: LOCALE;
|
||||
metadata?: {};
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
fullname: '',
|
||||
orgName: '',
|
||||
siteName: '',
|
||||
locale: ''
|
||||
locale: LOCALE.EN
|
||||
};
|
||||
let errors: OnboardingField = {};
|
||||
let progress = 50;
|
||||
@@ -212,6 +212,7 @@
|
||||
triggerSendEmail(NOTIFICATION_NAME.VERIFY_EMAIL, {
|
||||
to: $profile.email,
|
||||
profileId: $profile.id,
|
||||
fullname: $profile.fullname,
|
||||
orgSiteName: fields.siteName
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user