// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.Framework.ConfigurationModel; namespace Microsoft.AspNet.Identity { public class UserOptions { public UserOptions() { AllowOnlyAlphanumericNames = true; //User.RequireUniqueEmail = true; // TODO: app decision? } /// /// Only allow [A-Za-z0-9@_] in UserNames /// public bool AllowOnlyAlphanumericNames { get; set; } /// /// If set, enforces that emails are non empty, valid, and unique /// public bool RequireUniqueEmail { get; set; } } }