修复重构错误

This commit is contained in:
guange 2015-10-18 13:16:58 +08:00
parent 6086c9304e
commit 3a21e9f2b0
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ namespace :gitlab do
task :users => :environment do
# User.where(username: 'root').find_each do |user|
s = Trustie::Gitlab::Sync.new
User.where(login: 'guange1').find_each do |user|
User.find_each do |user|
s.sync_user(user)
end
end

View File

@ -30,7 +30,7 @@ module Trustie
user.save!
puts "create user #{user.login}"
end
Helper.change_password(u.id, user.hashed_password, user.salt)
change_password(u.id, user.hashed_password, user.salt)
rescue => e
puts e
end