Ants Pants
2010-Nov-23 12:04 UTC
Advice needed on completing a registration process by confirming an email address
Hello all, I was wondering if anyone has had experience of users registering to your application and you send an email to the address they provided and they have to click it to complete registration. Standard stuff but how best to do it? What should I put in the query string of the link I send? The session id? I cold always take that from the cookie. An encrypted version of the session id? Or something else. How have you tackled this? I look forward to your replies. CIA -Ants -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Frederick Cheung
2010-Nov-23 13:15 UTC
Re: Advice needed on completing a registration process by confirming an email address
On Nov 23, 12:04 pm, Ants Pants <antsmailingl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello all, > > I was wondering if anyone has had experience of users registering to your > application and you send an email to the address they provided and they have > to click it to complete registration. Standard stuff but how best to do it? > > What should I put in the query string of the link I send? > > The session id? I cold always take that from the cookie. > An encrypted version of the session id? > Or something else. >Authlogic has the concept of a perishable token. http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/ shows how to use this to do password resets, which from this point of view is practically the same as what you''re trying to: the important bit is that users can login via something other than their password, which is sent by email. Even if you''re not using authlogic you may be able to draw some inspiration from it Fred> How have you tackled this? > > I look forward to your replies. > > CIA > > -Ants-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ants Pants
2010-Nov-23 17:38 UTC
Re: Re: Advice needed on completing a registration process by confirming an email address
That''s precisely what I needed and it''s done!! Thanks very much. -ants On 23 November 2010 14:15, Frederick Cheung <frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> > > On Nov 23, 12:04 pm, Ants Pants <antsmailingl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hello all, > > > > I was wondering if anyone has had experience of users registering to your > > application and you send an email to the address they provided and they > have > > to click it to complete registration. Standard stuff but how best to do > it? > > > > What should I put in the query string of the link I send? > > > > The session id? I cold always take that from the cookie. > > An encrypted version of the session id? > > Or something else. > > > > Authlogic has the concept of a perishable token. > > http://www.binarylogic.com/2008/11/16/tutorial-reset-passwords-with-authlogic/ > shows how to use this to do password resets, which from this point of > view is practically the same as what you''re trying to: the important > bit is that users can login via something other than their password, > which is sent by email. Even if you''re not using authlogic you may be > able to draw some inspiration from it > > Fred > > How have you tackled this? > > > > I look forward to your replies. > > > > CIA > > > > -Ants > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.