#19 ✓resolved
Nate Zobrist

:password_salt column is required

Reported by Nate Zobrist | December 31st, 2008 @ 07:53 PM

In the README.rdoc, under "Ensure proper database fields" it says:

t.string    :password_salt,         :null => false # not needed if you are encrypting your pw instead of using a hash algorithm.

Since I am using AES256 I didn't create that column in my database. But when I try to create a new user I get errors like these: undefined method password_salt_changed?' undefined methodpassword_salt='

Since the authlogic tests use AES256 you can see this problem just by commenting out line 64 in test_helper.rb

    # t.string    :password_salt

and the associated salty data in the employees.yml.

I'm not sure if the correct fix is to change the documentation or the code.

Thanks, Nate

Comments and changes to this ticket

  • Ben Johnson

    Ben Johnson January 1st, 2009 @ 01:21 PM

    • State changed from “new” to “resolved”

    Thanks for letting me know about this. Salt is never a bad thing. I made the decision a while back to use it for everything because there is no reason not to. I will update the documentation to remove that comment, but go ahead and add in the salt field.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.

People watching this ticket