简体   繁体   中英

altering the asp.net mvc default user account

I've been trying to use the default accounting feature of MVC and it keeps failing.

I would like to change a couple of things in it but it doesn't seem to work.

  1. I want to make the username to be the email.
  2. I don't want to have the question and answer of the password fields. (When I tried to remove them it gave me an error that I didn't supply these items).
  3. I want to add additional fields to the member like first name, last name, address and so on.

How can I achieve that? Is there a more dynamic way to do that instead of the default accounting feature of MVC?

Thanks.

You are looking for a custom membership provider. You might try the following article by Dan Harman. It should point you in the right direction.

ASP.Net MVC 3 Custom Membership Provider with Repository Injection

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM