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:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user