From 9cfda6e05c8c0b35a358affd8f747d445332eb51 Mon Sep 17 00:00:00 2001 From: Nikolaj Geisle <70372949+Zeegaan@users.noreply.github.com> Date: Thu, 23 Feb 2023 14:22:33 +0100 Subject: [PATCH] new up settings so they are no longer null (#13879) Co-authored-by: Zeegaan --- src/Umbraco.Core/Configuration/Models/SecuritySettings.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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