I am looking to register 2 styles of user, they will both have different sets of data in the database.
I am looking to use asp.nets membership roles. Are there any simple ways to do this in an mvc app using maybe the account controller?
I am looking to register 2 styles of user, they will both have different sets of data in the database.
I am looking to use asp.nets membership roles. Are there any simple ways to do this in an mvc app using maybe the account controller?
What about using the ASP.NET configuration tool?
You can easily use the Authorize(Roles = "...") attributes on your controllers and actions.
here are some good tutorials to help you out.
http://www.squaredroot.com/post/2007/12/ASPNet-MVC-Membership-Basics.aspx
http://schotime.net/blog/index.php/2009/02/17/custom-authorization-with-aspnet-mvc/
I got this working using sqltableprofileProvider http://www.asp.net/downloads/sandbox/table-profile-provider-samples/ This lets me have additional fields to capture at registration.
I will post more details and a tutorial in blog soon.
Do you have a tutorial on how you managed to do this at all? I'm trying to do the same thing.