Home All Groups Group Topic Archive Search About

Validating new users by way of email

Author
10 Sep 2006 5:29 PM
JJ
When I new user registers on my web site I want to force them to click on a
link in a sent email to confirm that their email is correct.

I have searched high and low for this but I am probably using the wrong
search terms.

Is this built into asp.net 2.0, or is there another way of acheiving this?

JJ

Author
10 Sep 2006 5:54 PM
Otis Mukinfus
On Sun, 10 Sep 2006 18:29:13 +0100, "JJ" <a**@xyz.com> wrote:

>When I new user registers on my web site I want to force them to click on a
>link in a sent email to confirm that their email is correct.
>
>I have searched high and low for this but I am probably using the wrong
>search terms.
>
>Is this built into asp.net 2.0, or is there another way of acheiving this?
>
>JJ
>
Most sites just don't complete the registration process until the email sent has
been clicked, sending confirmation of the email.  I don't believe it a good
practice to try to force anyone to comply with ones wishes, do you?
Good luck with your project,

Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
Are all your drivers up to date? click for free checkup

Author
10 Sep 2006 6:08 PM
Stimp
On Sun, 10 Sep 2006 JJ <a**@xyz.com> wrote:
> When I new user registers on my web site I want to force them to click on a
> link in a sent email to confirm that their email is correct.
>
> I have searched high and low for this but I am probably using the wrong
> search terms.

very simple. Generate a random number when this user creates an account.
Store the random number in a column on the user's row in the database
table.

Send a link like : http:www.mysite.com/verify.aspx?code=343244322342

in the email.

If the verify code matches the one stored in the database, then activate
their account.
--

fiddlewidawiddum
Author
10 Sep 2006 6:30 PM
Riki
Stimp wrote:
Show quoteHide quote
> On Sun, 10 Sep 2006 JJ <a**@xyz.com> wrote:
>> When I new user registers on my web site I want to force them to
>> click on a link in a sent email to confirm that their email is
>> correct.
>>
>> I have searched high and low for this but I am probably using the
>> wrong search terms.
>
> very simple. Generate a random number when this user creates an
> account. Store the random number in a column on the user's row in the
> database table.
>
> Send a link like : http:www.mysite.com/verify.aspx?code=343244322342
>
> in the email.
>
> If the verify code matches the one stored in the database, then
> activate their account.

For completeness, you need to build a separate page verify.aspx
that is opened from the mail with a link.
When this page is opened, it will run code (in Page_Load) to complete the
registration.

--

Riki
Author
10 Sep 2006 6:49 PM
Stimp
On Sun, 10 Sep 2006 Riki <r***@dontnagme.com> wrote:
Show quoteHide quote
> Stimp wrote:
>> On Sun, 10 Sep 2006 JJ <a**@xyz.com> wrote:
>>> When I new user registers on my web site I want to force them to
>>> click on a link in a sent email to confirm that their email is
>>> correct.
>>>
>>> I have searched high and low for this but I am probably using the
>>> wrong search terms.
>>
>> very simple. Generate a random number when this user creates an
>> account. Store the random number in a column on the user's row in the
>> database table.
>>
>> Send a link like : http:www.mysite.com/verify.aspx?code=343244322342
>>
>> in the email.
>>
>> If the verify code matches the one stored in the database, then
>> activate their account.
>
> For completeness, you need to build a separate page verify.aspx
> that is opened from the mail with a link.
> When this page is opened, it will run code (in Page_Load) to complete the
> registration.

for even more completeness :P~ ...

I forgot to mention you should also pass the user's id in the link.

e.g. http://www.mysite.com/verify.aspx?u=123&code=98765465
--

fiddlewidawiddum
Author
11 Sep 2006 11:22 AM
JJ
Sorry to be so stupid:

Would I set the 'IsApproved' bit to 0 on the users record until the email is
confirmed?
Can I perhaps add this as a hidden field to the default create user
control?:
<asp:TextBox runat="server" ID="IsApproved" TextMode="Password"
Visible="false"  Text="1" /></td>

Does this then get added to the user records 'IaApproved' field?

Thanks in advance,

JJ

Show quoteHide quote
"Stimp" <r**@spumco.com> wrote in message
news:slrneg8nih.l6c.ren@murphy.redbrick.dcu.ie...
> On Sun, 10 Sep 2006 Riki <r***@dontnagme.com> wrote:
>> Stimp wrote:
>>> On Sun, 10 Sep 2006 JJ <a**@xyz.com> wrote:
>>>> When I new user registers on my web site I want to force them to
>>>> click on a link in a sent email to confirm that their email is
>>>> correct.
>>>>
>>>> I have searched high and low for this but I am probably using the
>>>> wrong search terms.
>>>
>>> very simple. Generate a random number when this user creates an
>>> account. Store the random number in a column on the user's row in the
>>> database table.
>>>
>>> Send a link like : http:www.mysite.com/verify.aspx?code=343244322342
>>>
>>> in the email.
>>>
>>> If the verify code matches the one stored in the database, then
>>> activate their account.
>>
>> For completeness, you need to build a separate page verify.aspx
>> that is opened from the mail with a link.
>> When this page is opened, it will run code (in Page_Load) to complete the
>> registration.
>
> for even more completeness :P~ ...
>
> I forgot to mention you should also pass the user's id in the link.
>
> e.g. http://www.mysite.com/verify.aspx?u=123&code=98765465
> --
>
> fiddlewidawiddum
Author
11 Sep 2006 1:38 PM
JJ
OK I'm totally stuck now. If someone can tell me how to set the IsApproved
bit to 0 (false) within the creatuser control  then please post here!

JJ


Show quoteHide quote
"Stimp" <r**@spumco.com> wrote in message
news:slrneg8nih.l6c.ren@murphy.redbrick.dcu.ie...
> On Sun, 10 Sep 2006 Riki <r***@dontnagme.com> wrote:
>> Stimp wrote:
>>> On Sun, 10 Sep 2006 JJ <a**@xyz.com> wrote:
>>>> When I new user registers on my web site I want to force them to
>>>> click on a link in a sent email to confirm that their email is
>>>> correct.
>>>>
>>>> I have searched high and low for this but I am probably using the
>>>> wrong search terms.
>>>
>>> very simple. Generate a random number when this user creates an
>>> account. Store the random number in a column on the user's row in the
>>> database table.
>>>
>>> Send a link like : http:www.mysite.com/verify.aspx?code=343244322342
>>>
>>> in the email.
>>>
>>> If the verify code matches the one stored in the database, then
>>> activate their account.
>>
>> For completeness, you need to build a separate page verify.aspx
>> that is opened from the mail with a link.
>> When this page is opened, it will run code (in Page_Load) to complete the
>> registration.
>
> for even more completeness :P~ ...
>
> I forgot to mention you should also pass the user's id in the link.
>
> e.g. http://www.mysite.com/verify.aspx?u=123&code=98765465
> --
>
> fiddlewidawiddum

Bookmark and Share