2020-08-20 08:24:23 +01:00
|
|
|
|
using Umbraco.Core;
|
2020-03-16 14:02:08 +01:00
|
|
|
|
using Umbraco.Core.Configuration;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Configuration.Models
|
|
|
|
|
|
{
|
2020-08-20 08:24:23 +01:00
|
|
|
|
public class UserPasswordConfigurationSettings
|
2020-03-16 14:02:08 +01:00
|
|
|
|
{
|
2020-08-20 08:24:23 +01:00
|
|
|
|
public int RequiredLength { get; set; } = 10;
|
2020-03-18 11:29:29 +01:00
|
|
|
|
|
2020-08-20 08:24:23 +01:00
|
|
|
|
public bool RequireNonLetterOrDigit { get; set; } = false;
|
2020-03-16 14:02:08 +01:00
|
|
|
|
|
2020-08-20 08:24:23 +01:00
|
|
|
|
public bool RequireDigit { get; set; } = false;
|
2020-03-18 11:29:29 +01:00
|
|
|
|
|
2020-08-20 08:24:23 +01:00
|
|
|
|
public bool RequireLowercase { get; set; } = false;
|
2020-03-18 11:29:29 +01:00
|
|
|
|
|
2020-08-20 08:24:23 +01:00
|
|
|
|
public bool RequireUppercase { get; set; } = false;
|
2020-03-18 11:29:29 +01:00
|
|
|
|
|
2020-08-20 08:24:23 +01:00
|
|
|
|
public string HashAlgorithmType { get; set; } = Constants.Security.AspNetCoreV3PasswordHashAlgorithmName;
|
2020-03-18 11:29:29 +01:00
|
|
|
|
|
2020-08-20 08:24:23 +01:00
|
|
|
|
public int MaxFailedAccessAttemptsBeforeLockout { get; set; } = 5;
|
2020-03-16 14:02:08 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|