summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-09 15:53:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-04-09 15:53:48 +0000
commit269e9057ddff73081eadffd533ab3ad1a18b0011 (patch)
tree477658f1fb53a322cc1ba4b0ad52f386b3ef93c4 /app/controllers
parentea307619beceb51d6b9229987480e051f53b67d6 (diff)
downloadredmine-269e9057ddff73081eadffd533ab3ad1a18b0011.tar.gz
redmine-269e9057ddff73081eadffd533ab3ad1a18b0011.zip
Fixed that "Default administrator account changed" is always true (#10622).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9379 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/admin_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb
index 9684f5cbf..b8d4981f5 100644
--- a/app/controllers/admin_controller.rb
+++ b/app/controllers/admin_controller.rb
@@ -75,9 +75,7 @@ class AdminController < ApplicationController
def info
@db_adapter_name = ActiveRecord::Base.connection.adapter_name
@checklist = [
- [:text_default_administrator_account_changed,
- User.find(:first,
- :conditions => ["login=? and hashed_password=?", 'admin', User.hash_password('admin')]).nil?],
+ [:text_default_administrator_account_changed, User.default_admin_account_changed?],
[:text_file_repository_writable, File.writable?(Attachment.storage_path)],
[:text_plugin_assets_writable, File.writable?(Redmine::Plugin.public_directory)],
[:text_rmagick_available, Object.const_defined?(:Magick)]