I'm using the has_secure_password function in my Rails 3.1 model. I need to verify that the passwords are unique. The has_secure_password function stores the password in a bcrypt hash. It appears the hashes are created with a salt unique to the record, therefore the hash is unique even for the same password. Does anyone know a way around this?
As an example. If I create two users with the username "user" and the password "password", the saved password_digest for each will be different. Because I don't store the password itself, I can't check to be sure the passwords are unique. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

