module Devise::Models::DatabaseAuthenticatable

def password=(new_password)

the hashed password.
For legacy reasons, we use `encrypted_password` to store
Generates a hashed password based on the given value.
def password=(new_password)
  @password = new_password
  self.encrypted_password = password_digest(@password) if @password.present?
end