diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index eb4f1a82..cb556f8d 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -377,10 +377,10 @@ class AccountController < ApplicationController else us = UsersService.new @user = us.register user_params.merge(:should_confirmation_password => false) - # 注册时,记录是否是引流用户 - ip = request.remote_ip - ua = UserAgent.find_by_ip(ip) - ua.update_column(:type, UserAgent::REGISTER) if ua + # # 注册时,记录是否是引流用户 + # ip = request.remote_ip + # ua = UserAgent.find_by_ip(ip) + # ua.update_column(:type, UserAgent::REGISTER) if ua if !@user.new_record? self.logged_user = @user flash[:notice] = l(:notice_account_activated)