Moved configuration setting POCOs into Umbraco.Core and adjusted references.

Amended injection of some settings to use IOptionsSnapshot.
This commit is contained in:
Andy Butland
2020-08-20 22:18:50 +01:00
parent 0f6e18023f
commit e3a44c6717
90 changed files with 575 additions and 433 deletions

View File

@@ -0,0 +1,22 @@
using Umbraco.Core;
using Umbraco.Core.Configuration;
namespace Umbraco.Core.Configuration.Models
{
public class UserPasswordConfigurationSettings : IPasswordConfiguration
{
public int RequiredLength { get; set; } = 10;
public bool RequireNonLetterOrDigit { get; set; } = false;
public bool RequireDigit { get; set; } = false;
public bool RequireLowercase { get; set; } = false;
public bool RequireUppercase { get; set; } = false;
public string HashAlgorithmType { get; set; } = Constants.Security.AspNetCoreV3PasswordHashAlgorithmName;
public int MaxFailedAccessAttemptsBeforeLockout { get; set; } = 5;
}
}