Method: Devise::Models::DatabaseAuthenticatable#password_digest

Defined in:
lib/devise/models/database_authenticatable.rb

#password_digest(password) ⇒ Object (protected)

Hashes the password using bcrypt. Custom hash functions should override this method to apply their own algorithm.

See github.com/plataformatec/devise-encryptable for examples of other hashing engines.

[View source]

146
147
148
# File 'lib/devise/models/database_authenticatable.rb', line 146

def password_digest(password)
  Devise::Encryptor.digest(self.class, password)
end