Skip to content
This repository was archived by the owner on Feb 15, 2018. It is now read-only.
This repository was archived by the owner on Feb 15, 2018. It is now read-only.

AspNetIdentityManagerService : CreateUserAsync : UserManager.CreateUserAsync : RequireUniqueEmail error #30

Description

@BruceHunter

If you set the following configuration for the AspNetIdentity UserManager.

            manager.UserValidator = new UserValidator<User, string>(manager)
            {
                AllowOnlyAlphanumericUserNames = false,
                RequireUniqueEmail = true
            };

If you call the method _identityManagerService.CreateUserAsync().

with RequireUniqueEmail = true

You will get an 401 Result Error about Email can not be null or empty message.

The workaround is to set RequireUniqueEmail = false.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions