From 5d84e4482db5519f4431544eaa598170d270c7f9 Mon Sep 17 00:00:00 2001 From: alexeh Date: Tue, 21 Jan 2025 06:27:09 +0100 Subject: [PATCH] refactor account activation email body --- .../authentication/password-mail.service.ts | 55 ++++++++++++++----- 1 file changed, 41 insertions(+), 14 deletions(-) diff --git a/api/src/modules/authentication/password-mail.service.ts b/api/src/modules/authentication/password-mail.service.ts index 287e57ba7..337658513 100644 --- a/api/src/modules/authentication/password-mail.service.ts +++ b/api/src/modules/authentication/password-mail.service.ts @@ -13,23 +13,50 @@ export class PasswordMailService { async sendUserActivationEmail(email: string, token: string): Promise { const htmlContent: string = ` -

Welcome to Landgriffon!

-

An account has been created for you by an administrator. As this is your first time logging in, we request you create a new password for your account.

-
-

To get started, please click on the link below:

-

Secure Password Setup Link

-
-

This link will take you to our app where you can create your new password. For security reasons, this link will expire after 24 hours.

-

Please remember that a strong password includes a mix of letters, numbers, and special characters. Never share your password with anyone, even if they claim to be from Landgriffon.

-

Our team will never ask you for your password in an email, over the phone, or on any social media platform.

-

Thank you for choosing Landgriffon. We are committed to providing you with a secure and seamless experience.

-
-

If you have any questions or need further assistance, please don't hesitate to contact us.

-

Best regards.

`; + + + + + + Welcome to Landgriffon + + +

Welcome to Landgriffon!

+ +

Hi there,

+ +

An account has been created for you. To get started, please set it up by clicking the link below:

+ +

+ + Set Up Your Account + +

+ +

This link will expire in 24 hours for security purposes.

+ +

To ensure a secure account, we recommend using a password with a mix of letters, numbers, and special characters.

+ +

If you didn't request this, please ignore this email.

+ +

For any assistance, feel free to reach out to our support team at + support@landgriffon.com. +

+ +

Best regards,
The Landgriffon Team

+ +
+ +

+ If you have received this email by mistake, please disregard it. You are receiving this email as part of your Landgriffon account registration. +

+ + + `; await this.emailService.sendMail({ to: email, - subject: 'Welcome to Landgriffon - Please Set Up Your Password', + subject: 'Welcome to Landgriffon - Set up your Account', html: htmlContent, }); }