MVC Add Secondary Email Using Asp.net Identity

I am new to MVC and ASP.NET Identity. Is there a way to add a secondary email using an ASP.NET identifier?

I need to give the user the ability to add a second letter in order to use it in my application.

+5
source share
1 answer

You extend the ApplicationUser object to add additional properties.

 public class ApplicationUser : IdentityUser { public string SecondaryEmail { get; set; } } 

You will need to update the models and actions to view the registry to get detailed details.

If you want the user to be able to log in with this additional email, you need a special implementation of SignInManager<ApplicationUser> .

+6
source

Source: https://habr.com/ru/post/1240153/


All Articles