Browse Source

Code cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10882 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.2.0
Jean-Philippe Lang 11 years ago
parent
commit
04dcdb3290
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/models/user.rb

+ 1
- 1
app/models/user.rb View File

@@ -628,7 +628,7 @@ class User < Principal
next if user.hashed_password.blank?
salt = User.generate_salt
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

Loading…
Cancel
Save