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?
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
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
NormalizedEmailAddressandEmailAddressfields not required inOnModelCreatingof 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.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) - Database (Entity): In order to do this, you can use fluent configuration and make