mirror of
https://github.com/bitwarden/server.git
synced 2025-04-24 22:32:22 -05:00

* Initial commit of welcome email update * Final revisions and updated hosted image urls * added dynamic year // updated verbiage // fixed typo in text template * Updated verbiage // changed mustache accessor // updated how year is generated
30 lines
638 B
C#
30 lines
638 B
C#
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;
|
|
}
|
|
}
|
|
public string CurrentYear
|
|
{
|
|
get
|
|
{
|
|
return DateTime.UtcNow.Year.ToString();
|
|
}
|
|
}
|
|
}
|
|
}
|