diff --git a/api/server/services/AuthService.js b/api/server/services/AuthService.js index 5e8a3e55e3..098110df0d 100644 --- a/api/server/services/AuthService.js +++ b/api/server/services/AuthService.js @@ -172,8 +172,10 @@ const requestPasswordReset = async (email) => { user.email, 'Password Reset Request', { + appName: process.env.APP_TITLE || 'LibreChat', name: user.name, link: link, + year: new Date().getFullYear(), }, 'requestPasswordReset.handlebars', ); @@ -214,7 +216,9 @@ const resetPassword = async (userId, token, password) => { user.email, 'Password Reset Successfully', { + appName: process.env.APP_TITLE || 'LibreChat', name: user.name, + year: new Date().getFullYear(), }, 'passwordReset.handlebars', ); diff --git a/api/server/utils/emails/passwordReset.handlebars b/api/server/utils/emails/passwordReset.handlebars index 2d0d5426cc..d41566c598 100644 --- a/api/server/utils/emails/passwordReset.handlebars +++ b/api/server/utils/emails/passwordReset.handlebars @@ -1,11 +1,186 @@ - - - + + + + + + + + + + + +
+ +
+
+
+ + +
+
+ +
+ + + + + + + +
+
+
Hi {{name}},
+
+
+ + + + + + +
+
+
+
Your password has been updated successfully!
+
+
+
+ + + + + + +
+
+
Best regards,
+
The {{appName}} Team
+
+
+ + + + + + +
+
+
+
© {{year}} {{appName}}. All rights + reserved.
+
+
+
+ +
+ +
+
+ + +
+
+
+ +
+ + + - - - -

Hi {{name}},

-

Your password has been changed successfully.

- \ No newline at end of file diff --git a/api/server/utils/emails/requestPasswordReset.handlebars b/api/server/utils/emails/requestPasswordReset.handlebars index 1bf9853c68..e579ec0d5c 100644 --- a/api/server/utils/emails/requestPasswordReset.handlebars +++ b/api/server/utils/emails/requestPasswordReset.handlebars @@ -1,13 +1,239 @@ - - - + + + + + + + + + + + +
+ +
+
+
+ + +
+
+ +
+ + + + + + + +
+ +

+
+
You have requested to reset your password. +
+
+

+ +
+ + + + + + +
+
+
Hi {{name}},
+
+
+ + + + + + +
+
+

Please click the button below to reset your password.

+
+
+ + + + + + +
+ + +
+ + + + + + +
+
+
+
If you did not request a password reset, please ignore this email.
+
+
+
+ + + + + + +
+
+
Best regards,
+
The {{appName}} Team
+
+
+ + + + + + +
+
+
+
© {{year}} {{appName}}. All rights + reserved.
+
+
+
+ +
+ +
+
+ + +
+
+
+ +
+ + + - - - -

Hi {{name}},

-

You have requested to reset your password.

-

Please click the link below to reset your password.

- Reset Password - \ No newline at end of file diff --git a/api/server/utils/emails/verifyEmail.handlebars b/api/server/utils/emails/verifyEmail.handlebars new file mode 100644 index 0000000000..2855d4647e --- /dev/null +++ b/api/server/utils/emails/verifyEmail.handlebars @@ -0,0 +1,239 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+ + +
+
+ +
+ + + + + + + +
+ +

+
+
Welcome to {{appName}}!
+
+

+ +
+ + + + + + +
+
+
+
Dear {{name}},
+
+
+
+ + + + + + +
+
+
+
Thank you for registering with {{appName}}. To complete your registration and verify your email address, please click the button below:
+
+
+
+ + + + + + +
+ + +
+ + + + + + +
+
+
+
If you did not create an account with {{appName}}, please ignore this email.
+
+
+
+ + + + + + +
+
+
Best regards,
+
The {{appName}} Team
+
+
+ + + + + + +
+
+
+
© {{year}} {{appName}}. All rights + reserved.
+
+
+
+ +
+ +
+
+ + +
+
+
+ +
+ + + + + \ No newline at end of file