|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Validating new users by way of emailWhen 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 On Sun, 10 Sep 2006 18:29:13 +0100, "JJ" <a**@xyz.com> wrote: Most sites just don't complete the registration process until the email sent has>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 > 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 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 very simple. Generate a random number when this user creates an account. > 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. 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 Stimp wrote:
Show quote > On Sun, 10 Sep 2006 JJ <a**@xyz.com> wrote: For completeness, you need to build a separate page verify.aspx>> 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. 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 On Sun, 10 Sep 2006 Riki <r***@dontnagme.com> wrote:
Show quote > Stimp wrote: for even more completeness :P~ ...>> 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. 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 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 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 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 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 |
|||||||||||||||||||||||