1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 15:42:48 -05:00

welcome email should use web vault url hostname

This commit is contained in:
Kyle Spearrin
2017-11-29 13:40:56 -05:00
parent 38ee251f72
commit c988171f09
2 changed files with 16 additions and 2 deletions

View File

@ -1,8 +1,22 @@
namespace Bit.Core.Models.Mail
using System;
namespace Bit.Core.Models.Mail
{
public class BaseMailModel
{
public string SiteName { 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;
}
}
}
}