mirror of
https://github.com/bitwarden/server.git
synced 2025-05-29 15:24:51 -05:00
welcome email should use web vault url hostname
This commit is contained in:
parent
38ee251f72
commit
c988171f09
@ -96,7 +96,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr style="-webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; box-sizing: border-box; color: #333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25px; margin: 0;">
|
<tr style="-webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; box-sizing: border-box; color: #333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25px; margin: 0;">
|
||||||
<td class="content-block h3 biglink aligncenter" style="-webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; box-sizing: border-box; color: #333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 25px; margin: 0; padding: 0 0 10px;" align="center" valign="top">
|
<td class="content-block h3 biglink aligncenter" style="-webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; box-sizing: border-box; color: #333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 25px; margin: 0; padding: 0 0 10px;" align="center" valign="top">
|
||||||
<a target="_blank" href="@Raw(Model.WebVaultUrl)/?utm_source=welcome_email&utm_medium=email" style="-webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; box-sizing: border-box; color: #3c8dbc; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 20px; line-height: 25px; margin: 0; text-decoration: underline;">vault.bitwarden.com</a>
|
<a target="_blank" href="@Raw(Model.WebVaultUrl)/?utm_source=welcome_email&utm_medium=email" style="-webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; box-sizing: border-box; color: #3c8dbc; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 20px; line-height: 25px; margin: 0; text-decoration: underline;">@Raw(Model.WebVaultUrlHostname)</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr style="-webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; box-sizing: border-box; color: #333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25px; margin: 0;">
|
<tr style="-webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; box-sizing: border-box; color: #333; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 16px; line-height: 25px; margin: 0;">
|
||||||
|
@ -1,8 +1,22 @@
|
|||||||
namespace Bit.Core.Models.Mail
|
using System;
|
||||||
|
|
||||||
|
namespace Bit.Core.Models.Mail
|
||||||
{
|
{
|
||||||
public class BaseMailModel
|
public class BaseMailModel
|
||||||
{
|
{
|
||||||
public string SiteName { get; set; }
|
public string SiteName { get; set; }
|
||||||
public string WebVaultUrl { get; set; }
|
public string WebVaultUrl { get; set; }
|
||||||
|
public string WebVaultUrlHostname
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if(Uri.TryCreate(WebVaultUrl, UriKind.Absolute, out Uri uri))
|
||||||
|
{
|
||||||
|
return uri.Host;
|
||||||
|
}
|
||||||
|
|
||||||
|
return WebVaultUrl;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user