From a3130c8aabcc5140a22dd489dd9dddb71c8100ed Mon Sep 17 00:00:00 2001
From: Girish Ramakrishnan
Date: Mon, 27 Aug 2018 10:40:58 -0700
Subject: [PATCH] inviteLink is not available during user create anymore
---
src/mail_templates/user_added.ejs | 17 -----------------
src/mailer.js | 1 -
2 files changed, 18 deletions(-)
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'
};