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