I'm learning how to use the Sql Membership provider that ships with ASP.net 4.0. I'm trying to establish three distinct roles; admin, verified and user.
Account creation for the user
role requires just a username and password. Then for a verified
user, I also want to collect an email address and require confirmation through a link.
I'd like to have the same account creation for both user
and verified
with an optional email field. If they enter an email, the confirmation email is sent, if they don't enter an email, they simply get a regular user
role account.
Is there a may to accomplish this using the membership class, or will I have to use the OnCreatedUser()
event. I also assume that I'll have to use a custom asp:CreateUserWizard section. Does anybody with membership familiarity have any suggestions on how I should got about implementing this design?