Browse Source

Save IP address used for sign-up, not only sign-in (#10026)

Fixes #9995
pull/4/head
ThibG 5 years ago
committed by Eugen Rochko
parent
commit
67215692fc
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/auth/registrations_controller.rb

+ 1
- 0
app/controllers/auth/registrations_controller.rb View File

@ -28,6 +28,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController
resource.invite_code = params[:invite_code] if resource.invite_code.blank?
resource.agreement = true
resource.current_sign_in_ip = request.remote_ip if resource.current_sign_in_ip.nil?
resource.build_account if resource.account.nil?
end

Loading…
Cancel
Save