17 references to User
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
SqlStoreTestBase.cs (1)
39
options.
User
.AllowedUserNameCharacters = null;
UserStoreEncryptPersonalDataTest.cs (1)
27
options.
User
.AllowedUserNameCharacters = null;
Microsoft.AspNetCore.Identity.Specification.Tests (6)
IdentitySpecificationTestBase.cs (1)
50
options.
User
.AllowedUserNameCharacters = null;
UserManagerSpecificationTests.cs (5)
63
options.
User
.AllowedUserNameCharacters = null;
302
manager.Options.
User
.RequireUniqueEmail = true;
409
manager.Options.
User
.RequireUniqueEmail = true;
424
manager.Options.
User
.RequireUniqueEmail = true;
870
manager.Options.
User
.RequireUniqueEmail = true;
Microsoft.AspNetCore.Identity.Test (6)
IdentityOptionsTest.cs (4)
28
Assert.Equal("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._@+", options.
User
.AllowedUserNameCharacters);
29
Assert.False(options.
User
.RequireUniqueEmail);
61
services.AddIdentity<PocoUser, PocoRole>(options => options.
User
.RequireUniqueEmail = true);
68
Assert.True(myOptions.
User
.RequireUniqueEmail);
UserManagerTest.cs (1)
1756
manager.Options.
User
.RequireUniqueEmail = true;
UserValidatorTest.cs (1)
77
manager.Options.
User
.AllowedUserNameCharacters = null;
Microsoft.Extensions.Identity.Core (3)
UserValidator.cs (3)
45
if (manager.Options.
User
.RequireUniqueEmail)
61
else if (!string.IsNullOrEmpty(manager.Options.
User
.AllowedUserNameCharacters) &&
62
userName.Any(c => !manager.Options.
User
.AllowedUserNameCharacters.Contains(c)))