50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
using System.Collections.Generic;
|
|
|
|
namespace xIdentityModels.Configurations {
|
|
/// <summary>
|
|
/// the Policies for User
|
|
/// </summary>
|
|
public class XIdentityPolicyUser {
|
|
/// <summary>
|
|
/// determines Allowed characters which can used in UserName
|
|
/// </summary>
|
|
/// <value></value>
|
|
public string AllowedUserNameCharacters { get; set; }
|
|
|
|
/// <summary>
|
|
/// determines the Email Address of each User must be Unique or not
|
|
/// </summary>
|
|
/// <value></value>
|
|
public bool RequireUniqueEmail { get; set; }
|
|
|
|
/// <summary>
|
|
/// minimum length of User Name
|
|
/// </summary>
|
|
/// <value></value>
|
|
public byte MinLength { get; set; }
|
|
|
|
/// <summary>
|
|
/// maximum length of user name
|
|
/// </summary>
|
|
/// <value></value>
|
|
public byte MaxLength { get; set; }
|
|
|
|
/// <summary>
|
|
/// Minimum Age for Registration
|
|
/// </summary>
|
|
/// <value></value>
|
|
public int MinAgeForRegistration { get; set; }
|
|
|
|
/// <summary>
|
|
/// Maximum age for Registration
|
|
/// </summary>
|
|
/// <value></value>
|
|
public int MaxAgeForRegistration { get; set; }
|
|
|
|
/// <summary>
|
|
/// a collection of invalid usernames
|
|
/// </summary>
|
|
/// <value></value>
|
|
public ICollection<string> InvalidUserNames { get; set; } = new HashSet<string> ();
|
|
}
|
|
} |