📧 update email templates (#2057)

* 📧 chore: update email templates

* 📧 update password reset confirmation
This commit is contained in:
Fuegovic 2024-03-11 09:07:09 -04:00 committed by GitHub
parent 2f88c5cb8a
commit f489aee518
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 664 additions and 20 deletions

View file

@ -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',
);