26 lines
815 B
C#
26 lines
815 B
C#
// 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?
|
|
}
|
|
|
|
/// <summary>
|
|
/// Only allow [A-Za-z0-9@_] in UserNames
|
|
/// </summary>
|
|
public bool AllowOnlyAlphanumericNames { get; set; }
|
|
|
|
/// <summary>
|
|
/// If set, enforces that emails are non empty, valid, and unique
|
|
/// </summary>
|
|
public bool RequireUniqueEmail { get; set; }
|
|
}
|
|
} |