Created
August 3, 2011 13:46
-
-
Save spalladino/1122673 to your computer and use it in GitHub Desktop.
Disable password hashing in devise for testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Devise | |
module Models | |
module DatabaseAuthenticatable | |
protected | |
def password_digest(password) | |
password | |
end | |
end | |
end | |
end | |
Devise.setup do |config| | |
config.stretches = 0 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment