I use Devise gem for authentication.
How can I check if the password submitted in params array is valid?
I try to compare the value of user.encrypted_password with BCrypt::Password.create('password') but the hash values are different.
May be I need something like salt value?