0
vitaly created
Can I use for User authorization only email, no UserName?
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
2 Answer(s)
-
0
Username is mandatory. But you can use email as username as a workaround.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
FWIW I found that I also needed to add a custom validator in my UserManager ctor to be able to use non-alphanumeric characters in the username:
this.UserValidator = new UserValidator<User,long>(this) { RequireUniqueEmail = false, AllowOnlyAlphanumericUserNames = false };Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)