Skip to content

Commit

Permalink
Save IP address used for sign-up, not only sign-in (mastodon#10026)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and Gargron committed Feb 12, 2019
1 parent 8af9555 commit 643baaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/auth/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def build_resource(hash = nil)
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

Expand Down

0 comments on commit 643baaf

Please sign in to comment.