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:
parent
e50955ca40
commit
46419d479a
@ -1,4 +1,4 @@
|
||||
@model Bit.Core.Models.Mail.OrganizationUserConfirmedViewModel
|
||||
@model Bit.Core.Models.Mail.OrganizationUserAcceptedViewModel
|
||||
@{
|
||||
Layout = "_BasicMailLayout.text";
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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>
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user