module Devise::Models::DatabaseAuthenticatable
def password_digest(password)
See https://github.com/heartcombo/devise-encryptable for examples
this method to apply their own algorithm.
Hashes the password using bcrypt. Custom hash functions should override
def password_digest(password) Devise::Encryptor.digest(self.class, password) end