Code cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10882 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-11-27 19:24:22 +00:00
parent 457f0bb337
commit 04dcdb3290
1 changed files with 1 additions and 1 deletions

View File

@ -628,7 +628,7 @@ class User < Principal
next if user.hashed_password.blank? next if user.hashed_password.blank?
salt = User.generate_salt salt = User.generate_salt
hashed_password = User.hash_password("#{salt}#{user.hashed_password}") hashed_password = User.hash_password("#{salt}#{user.hashed_password}")
User.update_all("salt = '#{salt}', hashed_password = '#{hashed_password}'", ["id = ?", user.id] ) User.where(:id => user.id).update_all(:salt => salt, :hashed_password => hashed_password)
end end
end end
end end