Validate User Registration Via Email

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
keats76
Commander (CMDR)
Commander (CMDR)
Posts: 117
Joined: Sat Dec 15, 2007 4:45 pm

Validate User Registration Via Email

Post by keats76 » Wed May 07, 2008 7:42 am

I need to require my newly registered users to validate their email addresses prior to logging into the system for the first time. Many websites require this feature, and I was wondering if the AC7 custom Membership Provider might be able to accommodate me?

I'd like the following:
1) User registers to the website
2) User is sent an email with a registration confirmation link.
3) User cannot login to the website until they confirm their registration via the link in their email inbox.

If this is not currently possible, does anyone have any suggestions on where to start? Could I extend the functionality of the existing Membership Provider to allow for this feature (without the source), or would I need the source code to move forward?

Thanks!
Mike

keats76
Commander (CMDR)
Commander (CMDR)
Posts: 117
Joined: Sat Dec 15, 2007 4:45 pm

Re: Validate User Registration Via Email

Post by keats76 » Wed May 07, 2008 8:10 am

What are your thoughts on this scenario ...

1) I force my users to register via the CreateProfilePage.
2) I change the UserDataSource.CreateUser call and set the isApproved flag to false.
3) I generate a random validation string for this user, append it to a custom field in their profile, then email them a link to a validation page with the random validation string as a variable in the URL to the new validation page.
4) The user clicks on the validation link in their email.
5) My custom validation page prompts the user to enter in their username and pw, then it stores the validation string from the URL. It loads the user profile associated with the username and pw, checks the validation string from the URL with the validation string in the custom user field, and if everything checks out, it then flips the "isApproved" flag in the user profile to true.

Does this sound feasible? Does the AC7 Membership Provider even care about the "isApproved" flag? Could a user login if this flag was false?

Thanks!
Mike

keats76
Commander (CMDR)
Commander (CMDR)
Posts: 117
Joined: Sat Dec 15, 2007 4:45 pm

Re: Validate User Registration Via Email

Post by keats76 » Thu May 08, 2008 3:38 pm

For future reference, I was able to implement this feature. My users must now validate their email addresses prior to logging on to the system for the first time. If anyone else is interested, reply to this post and I'll try to help out.

Thanks,
Mike

User avatar
tonz
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 48
Joined: Thu Mar 13, 2008 4:08 am

Re: Validate User Registration Via Email

Post by tonz » Sat Oct 04, 2008 2:32 am

We would like to implement the same user validation process. Could you tell what needs to be modified and how?

Thanks,

Tony
shop.faxproducts.com

Post Reply