diff --git a/src/mail_templates/user_added.ejs b/src/mail_templates/user_added.ejs index 31b460679..11828010e 100644 --- a/src/mail_templates/user_added.ejs +++ b/src/mail_templates/user_added.ejs @@ -4,15 +4,6 @@ Dear <%= cloudronName %> Admin, A new user with email <%= user.email %> was added to <%= cloudronName %>. -<% if (inviteLink) { %> -As requested, this user has not been sent an invitation email. - -To set a password and perform any configuration on behalf of the user, please use this link: -<%= inviteLink %> - -<% } %> - - Powered by https://cloudron.io <% } else { %> @@ -27,14 +18,6 @@ Powered by https://cloudron.io A new user with email <%= user.email %> was added to <%= cloudronName %>.

-<% if (inviteLink) { %> -

- As requested, this user has not been sent an invitation email.
-
- Set a password and perform any configuration on behalf of the user -

-<% } %> -

diff --git a/src/mailer.js b/src/mailer.js index 64b850f46..1bb5b5ab4 100644 --- a/src/mailer.js +++ b/src/mailer.js @@ -238,7 +238,6 @@ function userAdded(user) { var templateData = { user: user, - inviteLink: `${config.adminOrigin()}/api/v1/session/account/setup.html?reset_token=${user.resetToken}&email=${encodeURIComponent(user.email)}`, cloudronName: mailConfig.cloudronName, cloudronAvatarUrl: config.adminOrigin() + '/api/v1/cloudron/avatar' };