I'm using the latest 2.0.0-beta1 release of ASP.NET Identity and I don't want to utilise the new two-factor authentication support. In fact I want to remove the additional database columns EmailConfirmed, PhoneNumber, PhoneNumberConfirmed and TwoFactorEnabled but I can't see where I need to override the Identity classes to disable this functionality.
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to store image outside of the website's ro
- 'System.Threading.ThreadAbortException' in
- Request.PathInfo issues and XSS attacks
- How to dynamically load partial view Via jquery aj
相关文章
- asp.net HiddenField控件扩展问题
- asp.net HiddenField控件扩展问题
- Asp.Net网站无法写入错误日志,测试站点可以,正是站点不行
- asp.net mvc 重定向到vue hash字符串丢失
- FormsAuthenticationTicket expires too soon
- “Dynamic operations can only be performed in homog
- What is the best way to create a lock from a web a
- Add to htmlAttributes for custom ActionLink helper
You need to implement your own UserStore to remove the functionality. The generic constraint on Identity.EntityFramework.UserStore is that the TUser is of type IdentityUser so you can't remove this while using the default EF implementation.
So you would implement your own IUserStore and not implement IUserTwoFactorStore or IUserPhoneNumberStore and then you also fully control what your tables look like.