// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.AspNetCore.Identity { /// /// Options for user validation. /// public class UserOptions { /// /// Gets or sets the list of allowed characters in the username used to validate user names. /// /// /// The list of allowed characters in the username used to validate user names. /// public string AllowedUserNameCharacters { get; set; } = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._@+"; /// /// Gets or sets a flag indicating whether the application requires unique emails for its users. /// /// /// True if the application requires each user to have their own, unique email, otherwise false. /// public bool RequireUniqueEmail { get; set; } } }