Generate the user invite link only in one location

This commit is contained in:
Johannes Zellner
2020-02-05 15:53:05 +01:00
parent 68b1d1dde1
commit 1fbbaa82ab
4 changed files with 14 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ Dear <%= user.displayName || user.username || user.email %>,
Welcome to <%= cloudronName %>!
Follow the link to get started.
<%- setupLink %>
<%- inviteLink %>
<% if (invitor && invitor.email) { %>
You are receiving this email because you were invited by <%= invitor.email %>.
@@ -25,7 +25,7 @@ Powered by https://cloudron.io
<h2>Welcome to <%= cloudronName %>!</h2>
<p>
<a href="<%= setupLink %>">Get started</a>.
<a href="<%= inviteLink %>">Get started</a>.
</p>
<br/>