1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-28 06:44:50 -05:00

no click tracking on certain links

This commit is contained in:
Kyle Spearrin 2017-07-29 13:32:56 -04:00
parent e50955ca40
commit 46419d479a
4 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
@model Bit.Core.Models.Mail.OrganizationUserConfirmedViewModel
@model Bit.Core.Models.Mail.OrganizationUserAcceptedViewModel
@{
Layout = "_BasicMailLayout.text";
}

View File

@ -6,7 +6,7 @@
You have been invited to join the @Model.OrganizationName organization.
To accept this invite, click the following link:
</p>
<p><a href="@Model.Url" target="_blank">@Model.Url</a></p>
<p><a href="@Model.Url" target="_blank" clicktracking=off>@Model.Url</a></p>
<p>
If you do not wish to join this organization, you can safely ignore
this email.

View File

@ -5,4 +5,4 @@
<p>
Verify this email address for your bitwarden account by clicking the following link:
</p>
<p><a href="@Model.Url" target="_blank">@Model.Url</a></p>
<p><a href="@Model.Url" target="_blank" clicktracking=off>@Model.Url</a></p>

View File

@ -34,6 +34,13 @@ namespace Bit.Core.Services
From = new EmailAddress(_globalSettings.Mail.ReplyToEmail, _globalSettings.SiteName),
HtmlContent = message.HtmlContent,
PlainTextContent = message.TextContent,
TrackingSettings = new TrackingSettings
{
ClickTracking = new ClickTracking
{
EnableText = false
}
}
};
sendGridMessage.AddTos(message.ToEmails.Select(e => new EmailAddress(e)).ToList());