# SaltedHashLoginGenerator Verification Trouble

**URL:** <https://www.ruby-forum.com/t/saltedhashlogingenerator-verification-trouble/56768>\
**Category:** Rails\
**Created:** [April 3, 2006, 6:52pm UTC](https://www.ruby-forum.com/t/saltedhashlogingenerator-verification-trouble/56768 "2006-04-03T18:52:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [April 3, 2006, 6:52pm UTC](https://www.ruby-forum.com/t/saltedhashlogingenerator-verification-trouble/56768/1 "2006-04-03T18:52:02Z")

</div>

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](http://localhost:3004/user/welcome?user%5Bid%5D=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 D.

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [April 3, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/saltedhashlogingenerator-verification-trouble/56768/2 "2006-04-03T19:11:12Z")

</div>

Robert D. 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 D.

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.

Jeff

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [April 3, 2006, 7:02pm UTC](https://www.ruby-forum.com/t/saltedhashlogingenerator-verification-trouble/56768/3 "2006-04-03T19:02:17Z")

</div>

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 D.

---

<div class="post-metadata">

**Author:** ![flatekmonkey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Post date:** [April 3, 2006, 7:17pm UTC](https://www.ruby-forum.com/t/saltedhashlogingenerator-verification-trouble/56768/4 "2006-04-03T19:17:25Z")

</div>

> 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.
> 
> Jeff

Jeff,

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 D.
