Robert Dempsey
2006-Apr-03 16:52 UTC
[Rails] SaltedHashLoginGenerator Verification Trouble
Hello all, Any help with this one is MUCH appreciated. I am running Ruby 1.84 and Rails 1.1.0 on Win32 with a local SMTP server. I can successfully send a signup confirmation email with a confirmation link, but when I click on the link, it says that I am logged in, but it never verifies the account. This is the link provided by the system: http://localhost:3004/user/welcome?user[id]=12&key=b69b31e8769c18cf94684ea12331cff49e9d5d52 I open it up locally (of course) with the message that I am logged on. I am not sure what is wrong. Any help with this is much appreciated. Thank you all in advance. Sincerely, Robert Dempsey -- Posted via http://www.ruby-forum.com/.
Robert Dempsey
2006-Apr-03 17:02 UTC
[Rails] Re: SaltedHashLoginGenerator Verification Trouble
Hello again, It appears that there is no code to handle the URL when it comes in - i.e. there is no code to verify the user! If anyone has any code for this I would appreciate it. Thanks ahead of time. Sincerely, Robert Dempsey -- Posted via http://www.ruby-forum.com/.
Jeff Coleman
2006-Apr-03 17:11 UTC
[Rails] Re: SaltedHashLoginGenerator Verification Trouble
Robert Dempsey wrote:> Hello again, > > It appears that there is no code to handle the URL when it comes in - > i.e. there is no code to verify the user! If anyone has any code for > this I would appreciate it. Thanks ahead of time. > > Sincerely, > > Robert DempseyScanning the code I found this to be odd too, when I was implementing this, but it''s actually fairly simple. The "login_required" filter handles the verification. Apply "login_required" to your welcome page in a before_filter and it will work as expected. Jeff -- Posted via http://www.ruby-forum.com/.
Robert Dempsey
2006-Apr-03 17:17 UTC
[Rails] Re: SaltedHashLoginGenerator Verification Trouble
> Scanning the code I found this to be odd too, when I was implementing > this, but it''s actually fairly simple. > > The "login_required" filter handles the verification. Apply > "login_required" to your welcome page in a before_filter and it will > work as expected. > > JeffJeff, Thank you for your quick response. I added the before_filter :login_required to the ApplicationController and all is well. I appreciate the help. Sincerely, Robert Dempsey -- Posted via http://www.ruby-forum.com/.