mirror of
https://github.com/bitwarden/server.git
synced 2026-02-05 08:33:10 +08:00
* Revert "Add git blame entry (#2226)" This reverts commit239286737d. * Revert "Turn on file scoped namespaces (#2225)" This reverts commit34fb4cca2a.
28 lines
623 B
C#
28 lines
623 B
C#
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();
|
|
}
|
|
}
|
|
}
|
|
}
|