PDA

View Full Version : Verify Registration.


saeed
04-09-2003, 08:07 AM
can anyone out there arrange me a link where I can found an asp application which generates a verification link which is send to user's email address when a user submits its information while registring on our website. and when a user clicks that link then he/she has became a member of our website before that he/she cannot access to that members page.

Saeed.

david7777
04-09-2003, 03:25 PM
I dont have the full code, but you will need CDONTS or JMAIL or something similar for the mail part.
You will then need a database for user information.
Lastly you will need the page the link will send the user to.

Here is how you could do it: The user registeres:
Their data is saved in the database, along with a unique verification key, and account status as dissabled.

The CDONTS or other mail system will send the verification email with the link to activate the account.

The link could include the following:
- unique verification key
- username / id

so the link might look something like this:
"http://www.domain.com/veify.asp?key=8f9032sf9w3fw3&id=saeed"

So the key is saved in the database, and when the user clicks on the link, he/she will be taken to the verify.asp page. The id will be taken, and searched for in the database, then when/if found, the verification key from the link will be checked with the one in the database. If They are the same, then the user account status will be set to enabled.

So if the user tries to use their account before verification, you can blcok them out by checking account status.

Ive never tried it, but it seems pretty simple...

Hope this helped
:cool: