Explorar el Código

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 hace 11 años
padre
commit
04dcdb3290
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      app/models/user.rb

+ 1
- 1
app/models/user.rb Ver fichero

@@ -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

Cargando…
Cancelar
Guardar