ASP.Net UserName to Email

后端 未结 7 745
北海茫月
北海茫月 2020-11-29 06:35

I am working with the new ASP.NET Identity (RTM) and I was wondering how would I go on about changing registering and login from being a UserName to an Email.

The id

7条回答
  •  独厮守ぢ
    2020-11-29 07:12

    I'm currently working on this feature for the Identity 1.1 templates which will switch to email and add account confirmation/forgot password functionality, and the two options we considered was the hack (use username as email with validation) and adding an additional email field which is separate from the username which is what we are leaning towards.

    Its likely that there will be a few email specific apis added in 1.1 to the UserManager:

    FindByEmail
    SetEmail
    GetEmail
    

提交回复
热议问题