admin-pw-check.diff

Toshi MARUYAMA, 2012-04-09 17:19

Download (1.07 KB)

View differences:

app/controllers/admin_controller.rb
76 76
    @db_adapter_name = ActiveRecord::Base.connection.adapter_name
77 77
    @checklist = [
78 78
      [:text_default_administrator_account_changed,
79
          User.find(:first,
80
                    :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil?],
79
          !User.find_by_login("admin").try(:check_password?, "admin")],
81 80
      [:text_file_repository_writable, File.writable?(Attachment.storage_path)],
82 81
      [:text_plugin_assets_writable,   File.writable?(Redmine::Plugin.public_directory)],
83 82
      [:text_rmagick_available,        Object.const_defined?(:Magick)]