Does an 'Account Activation' workflow exist for ASP.NET MVC

asp.net, asp.net-mvc

Solution

Implementing a Membership Provider

MSDN Membership Provider

Overriding a method, say the Create User Method

MSDN Membership.CreateUser()

All you need to do is inherit the AspNetMembershipProvider, override the CreateUser method and implement custom code:

public class MyNewMembershipProvider : AspNetMembershipProvider
{
        public override MembershipUser CreateUser(
            string username,
            string password,
            string email,
            string passwordQuestion,
            string passwordAnswer,
            bool isApproved,
            Object providerUserKey,
            out MembershipCreateStatus status)

            //Do whatever you need to do
            SendUserValidationMessage(emailAddress, responseMessage, 
                                      options, etc, whatever);

            return base.CreateUser(username, password, email, 
                                    passwordQuestion, passwordAnswer, 
                                    isApproved, providerUserKey, out status)
    }
}

I hope this helps. I think WF may be too much for something like this.

Problem

I need to implement the common 'New Account' pattern (in .net MVC) where: - user information is collected; - my system sends an email; - and the user if required to reply to the email to activate the account. Is there a best practices recognized or sample site that can guide my way? thx much EDIT: Note that i'm trying to drill into a deeper pattern here than just comparing a submitted password against a stored password. Also please note that I'm not attempting any reference to Windows Workflow here. The title uses workflow in a generic sense only. thx

Original source