Remove the need of Smtp.Host config when using PickupDirectoryLocation (#11548)

This commit is contained in:
Michael Latouche
2021-12-14 13:56:10 +01:00
committed by GitHub
parent bc80892f51
commit e65baae814
2 changed files with 12 additions and 7 deletions

View File

@@ -159,6 +159,10 @@ namespace Umbraco.Cms.Core.Configuration.Models
public bool IsSmtpServerConfigured => !string.IsNullOrWhiteSpace(Smtp?.Host);
/// <summary>
/// Gets a value indicating whether there is a physical pickup directory configured.
/// </summary>
public bool IsPickupDirectoryLocationConfigured => !string.IsNullOrWhiteSpace(Smtp?.PickupDirectoryLocation);
/// Gets a value indicating whether TinyMCE scripting sanitization should be applied
/// </summary>
[DefaultValue(StaticSanitizeTinyMce)]
@@ -174,4 +178,4 @@ namespace Umbraco.Cms.Core.Configuration.Models
[DefaultValue(StaticSqlWriteLockTimeOut)]
public TimeSpan SqlWriteLockTimeOut { get; } = TimeSpan.Parse(StaticSqlWriteLockTimeOut);
}
}
}