diff --git a/backend/src/email/emailSender.ts b/backend/src/email/emailSender.ts index 7d65bd301..ed6d5675b 100644 --- a/backend/src/email/emailSender.ts +++ b/backend/src/email/emailSender.ts @@ -73,7 +73,7 @@ export async function sendResetPassword( } } -function generatePassword(): string { +function generateReadableSecret(): string { return randomWords({ exactly: 4 }).join('-'); } @@ -85,9 +85,9 @@ export async function sendSelfHostWelcome( if (!send) { return; } - const dbPassword = generatePassword(); - const pgAdminPassword = generatePassword(); - const sessionSecret = generatePassword(); + const dbPassword = generateReadableSecret(); + const pgAdminPassword = generateReadableSecret(); + const sessionSecret = generateReadableSecret(); const template = await getSelfHostedWelcomeEmailTemplate( name, diff --git a/backend/src/email/register.template.html b/backend/src/email/register.template.html index 1f6709a81..39cc1e489 100644 --- a/backend/src/email/register.template.html +++ b/backend/src/email/register.template.html @@ -132,7 +132,7 @@

- CONFIRM MY EMAIL ADDRESS + CONFIRM MY EMAIL ADDRESS diff --git a/backend/src/email/reset-password.template.html b/backend/src/email/reset-password.template.html index 436e0ff41..e02228cc0 100644 --- a/backend/src/email/reset-password.template.html +++ b/backend/src/email/reset-password.template.html @@ -143,7 +143,7 @@

- RESET MY PASSWORD + RESET MY PASSWORD