Files
Umbraco-CMS/src/Umbraco.Core/Configuration/Models/SecuritySettings.cs

52 lines
1.7 KiB
C#
Raw Normal View History

// Copyright (c) Umbraco.
// See LICENSE for more details.
namespace Umbraco.Core.Configuration.Models
2020-03-16 14:02:08 +01:00
{
/// <summary>
/// Typed configuration options for security settings.
/// </summary>
public class SecuritySettings
2020-03-16 14:02:08 +01:00
{
/// <summary>
/// Gets or sets a value indicating whether to keep the user logged in.
/// </summary>
public bool KeepUserLoggedIn { get; set; } = false;
2020-03-18 11:29:29 +01:00
/// <summary>
/// Gets or sets a value indicating whether to hide disabled users in the back-office.
/// </summary>
public bool HideDisabledUsersInBackOffice { get; set; } = false;
2020-03-18 11:29:29 +01:00
/// <summary>
/// Gets or sets a value indicating whether to allow user password reset.
/// </summary>
public bool AllowPasswordReset { get; set; } = true;
2020-03-18 11:29:29 +01:00
/// <summary>
/// Gets or sets a value for the authorization cookie name.
/// </summary>
public string AuthCookieName { get; set; } = "UMB_UCONTEXT";
2020-03-18 11:29:29 +01:00
/// <summary>
/// Gets or sets a value for the authorization cookie domain.
/// </summary>
public string AuthCookieDomain { get; set; }
2020-03-18 11:29:29 +01:00
/// <summary>
/// Gets or sets a value indicating whether the user's email address is to be considered as their username.
/// </summary>
public bool UsernameIsEmail { get; set; } = true;
/// <summary>
/// Gets or sets a value for the user password settings.
/// </summary>
public UserPasswordConfigurationSettings UserPassword { get; set; }
/// <summary>
/// Gets or sets a value for the member password settings.
/// </summary>
public MemberPasswordConfigurationSettings MemberPassword { get; set; }
2020-03-16 14:02:08 +01:00
}
}