mirror of
https://github.com/bitwarden/server.git
synced 2026-02-05 16:43:14 +08:00
Revert filescoped (#2227)
* Revert "Add git blame entry (#2226)" This reverts commit239286737d. * Revert "Turn on file scoped namespaces (#2225)" This reverts commit34fb4cca2a.
This commit is contained in:
@@ -1,26 +1,27 @@
|
||||
namespace Bit.Core.Models.Mail;
|
||||
|
||||
public class BaseMailModel
|
||||
namespace Bit.Core.Models.Mail
|
||||
{
|
||||
public string SiteName { get; set; }
|
||||
public string WebVaultUrl { get; set; }
|
||||
public string WebVaultUrlHostname
|
||||
public class BaseMailModel
|
||||
{
|
||||
get
|
||||
public string SiteName { get; set; }
|
||||
public string WebVaultUrl { get; set; }
|
||||
public string WebVaultUrlHostname
|
||||
{
|
||||
if (Uri.TryCreate(WebVaultUrl, UriKind.Absolute, out Uri uri))
|
||||
get
|
||||
{
|
||||
return uri.Host;
|
||||
}
|
||||
if (Uri.TryCreate(WebVaultUrl, UriKind.Absolute, out Uri uri))
|
||||
{
|
||||
return uri.Host;
|
||||
}
|
||||
|
||||
return WebVaultUrl;
|
||||
return WebVaultUrl;
|
||||
}
|
||||
}
|
||||
}
|
||||
public string CurrentYear
|
||||
{
|
||||
get
|
||||
public string CurrentYear
|
||||
{
|
||||
return DateTime.UtcNow.Year.ToString();
|
||||
get
|
||||
{
|
||||
return DateTime.UtcNow.Year.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user