0
mikek created
Hi,
New user here: What's the best way to implement registration using a social login only?
My difficulty is that a social login does not necessarily provide an email address (eg: Facebook) and I'm not using UserName at all.
Is it possible to remove the requirements for UserName and EmailAddress on the AbpUser account? What are the ramifications of such a change?
Many thanks, mike
1 Answer(s)
-
0
Hi,
You can make EmailAddress optional by overiding OnModelCreating of your dbcontext (remember to call base.OnModelCreating first in your method). But username is required and not possible to make optional. You can set it to a random value (like guid) if you want.