1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-15 11:50:34 +01:00

feat(email): add {email} placeholder to user invitation email (#564)

* feat(email): add {email} placeholder to user invitation email

* change default values and setting description

---------

Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
Timothy 2024-08-25 21:58:40 +02:00 committed by GitHub
parent 01da83cdf6
commit 8c5c696c51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -107,7 +107,7 @@ const configVariables: ConfigVariables = {
inviteMessage: { inviteMessage: {
type: "text", type: "text",
defaultValue: defaultValue:
"Hey!\n\nYou were invited to Pingvin Share. Click this link to accept the invite: {url}\n\nYour password is: {password}\n\nPingvin Share 🐧", 'Hey!\n\nYou were invited to Pingvin Share. Click this link to accept the invite: {url}\n\nYou can use the email "{email}" and the password "{password}" to sign in.\n\nPingvin Share 🐧',
}, },
}, },
smtp: { smtp: {

View File

@ -116,7 +116,8 @@ export class EmailService {
this.config this.config
.get("email.inviteMessage") .get("email.inviteMessage")
.replaceAll("{url}", loginUrl) .replaceAll("{url}", loginUrl)
.replaceAll("{password}", password), .replaceAll("{password}", password)
.replaceAll("{email}", recipientEmail),
); );
} }

View File

@ -446,7 +446,7 @@ export default {
"Subject of the email which gets sent when an admin invites a user.", "Subject of the email which gets sent when an admin invites a user.",
"admin.config.email.invite-message": "Invite message", "admin.config.email.invite-message": "Invite message",
"admin.config.email.invite-message.description": "admin.config.email.invite-message.description":
"Message which gets sent when an admin invites a user. {url} will be replaced with the invite URL and {password} with the password.", "Message which gets sent when an admin invites a user. {url} will be replaced with the invite URL, {email} with the email and {password} with the password of the user.",
"admin.config.share.allow-registration": "Allow registration", "admin.config.share.allow-registration": "Allow registration",
"admin.config.share.allow-registration.description": "admin.config.share.allow-registration.description":