I'm just getting into roles and membership.
I have the code below which is on my registration page.
The users username is their email address.
Once the user has entered their information click register I want to save their details as I have done, add them to the relevant role and then re-direct them to the main menu of the private area.
The only bit I am missing below is how to "automatically" authorise them?
//we use the email as the username and give it customer membership
Roles.AddUserToRole(c.Email, "Registered Customer");
//need a step here to authorise the user automatically so they have access to the private area.
//now we need to "log" the user in and re-direct to the customer main menu