diff --git a/app/config/locale/templates/email-inner-base.tpl b/app/config/locale/templates/email-inner-base.tpl index 8cef391d2f..d39ffc0dcd 100644 --- a/app/config/locale/templates/email-inner-base.tpl +++ b/app/config/locale/templates/email-inner-base.tpl @@ -1,5 +1,12 @@

{{hello}}

{{body}}

+ + + + +
+ Accept invite +

{{redirect}}

{{footer}}

diff --git a/app/config/locale/translations/en.json b/app/config/locale/translations/en.json index d9dfddb017..4e40fac972 100644 --- a/app/config/locale/translations/en.json +++ b/app/config/locale/translations/en.json @@ -48,7 +48,7 @@ "emails.recovery.signature": "{{project}} team", "emails.invitation.subject": "Invitation to %s Team at %s", "emails.invitation.hello": "Hello {{user}},", - "emails.invitation.body": "This mail was sent to you because {{b}}{{owner}}{{/b}} wanted to invite you to become a member of the {{b}}{{team}}{{/b}} team at {{b}}{{project}}{{/b}}.", + "emails.invitation.body": "This mail was sent to you because {{b}}{{owner}}{{/b}} invited you to become a member of the {{b}}{{team}}{{/b}} team at {{b}}{{project}}{{/b}}.", "emails.invitation.footer": "If you are not interested, you can ignore this message.", "emails.invitation.thanks": "Thanks,", "emails.invitation.signature": "{{project}} team", diff --git a/app/controllers/api/teams.php b/app/controllers/api/teams.php index f829800b98..59b103d580 100644 --- a/app/controllers/api/teams.php +++ b/app/controllers/api/teams.php @@ -650,7 +650,7 @@ App::post('/v1/teams/:teamId/memberships') 'owner' => $user->getAttribute('name'), 'direction' => $locale->getText('settings.direction'), /* {{user}}, {{team}}, {{redirect}} and {{project}} are required in default and custom templates */ - 'user' => $user->getAttribute('name'), + 'user' => $invitee->getAttribute('name'), 'team' => $team->getAttribute('name'), 'redirect' => $url, 'project' => $projectName