engines/adva_user/vendor/plugins/authentication/lib/authentication/salted_hash.rb
# Will assign a new password for the given user.
Will assign a new password for the given user.
Will assign a new password for the given user .
def assign_password(user, password)
      return unless valid_model? user
      user.password_salt = hash_string "salt-#{Time.zone.now}"
      user.password_hash = hash_string password, user.password_salt
    end
def assign_password ( user , password ) return unless valid_model? user user . password_salt = hash_string "salt-#{Time.zone.now}" user . password_hash = hash_string password , user . password_salt end
Will assign a new password for the given user.
Will assign a new password for the given user .
user
password