mirror of
https://github.com/bitwarden/server
synced 2025-12-23 11:43:23 +00: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