mirror of
https://github.com/bitwarden/server
synced 2025-12-15 15:53:59 +00:00
[PM-25427] Allow reading mail templates from disk (#6123)
* Allow reading mail templates from self host disk * Update src/Core/Services/Implementations/HandlebarsMailService.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/Core/Services/Implementations/HandlebarsMailService.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * tweak logic * some error handling reading templates from disk * fix: broken test --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Andreas Coroiu <andreas.coroiu@gmail.com>
This commit is contained in:
@@ -8,6 +8,7 @@ namespace Bit.Core.Settings;
|
||||
|
||||
public class GlobalSettings : IGlobalSettings
|
||||
{
|
||||
private string _mailTemplateDirectory;
|
||||
private string _logDirectory;
|
||||
private string _licenseDirectory;
|
||||
|
||||
@@ -37,6 +38,11 @@ public class GlobalSettings : IGlobalSettings
|
||||
get => BuildDirectory(_licenseDirectory, "/core/licenses");
|
||||
set => _licenseDirectory = value;
|
||||
}
|
||||
public virtual string MailTemplateDirectory
|
||||
{
|
||||
get => BuildDirectory(_mailTemplateDirectory, "/mail-templates");
|
||||
set => _mailTemplateDirectory = value;
|
||||
}
|
||||
public string LicenseCertificatePassword { get; set; }
|
||||
public virtual string PushRelayBaseUri { get; set; }
|
||||
public virtual string InternalIdentityKey { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user