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 @@