0
auphara5 created
I made the user name unique for all tenants and modified the login process to be by user name or phone number.
How can I make the email field not required in user creation?
1 Answer(s)
-
0
Hi,
There 3 places you need to make EmailAddress not required.
- Database (Entity): In order to do this, you can use fluent configuration and make
NormalizedEmailAddress
andEmailAddress
fields not required inOnModelCreating
of yourDbContext
. - DTOs: You also need to make EmailAddress field not required in Register and Create/Edit DTOs (or view models in some cases depending on your project type).
- UI: You also need to make UI input elements not required as well in the related pages.
- Database (Entity): In order to do this, you can use fluent configuration and make