diff --git a/src/Umbraco.Core/Configuration/Models/SecuritySettings.cs b/src/Umbraco.Core/Configuration/Models/SecuritySettings.cs index d002cc2111..5b36de1bfa 100644 --- a/src/Umbraco.Core/Configuration/Models/SecuritySettings.cs +++ b/src/Umbraco.Core/Configuration/Models/SecuritySettings.cs @@ -69,13 +69,13 @@ public class SecuritySettings /// Gets or sets a value for the user password settings. /// [Obsolete("This no longer works. You can now inject this by using IOptions instead, scheduled for removal in v13")] - public UserPasswordConfigurationSettings? UserPassword { get; set; } + public UserPasswordConfigurationSettings? UserPassword { get; set; } = new(); /// /// Gets or sets a value for the member password settings. /// [Obsolete("This no longer works. You can now inject this by using IOptions instead, scheduled for removal in v13")] - public MemberPasswordConfigurationSettings? MemberPassword { get; set; } + public MemberPasswordConfigurationSettings? MemberPassword { get; set; } = new(); /// /// Gets or sets a value indicating whether to bypass the two factor requirement in Umbraco when using external login