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
Validate User Registration Via Email
Re: Validate User Registration Via Email
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
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
Re: Validate User Registration Via Email
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
Thanks,
Mike
Re: Validate User Registration Via Email
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
Thanks,
Tony
shop.faxproducts.com