Skip to content

Commit 643baaf

Browse files
ClearlyClaireGargron
authored andcommitted
Save IP address used for sign-up, not only sign-in (mastodon#10026)
Fixes mastodon#9995
1 parent 8af9555 commit 643baaf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/controllers/auth/registrations_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def build_resource(hash = nil)
2828
resource.invite_code = params[:invite_code] if resource.invite_code.blank?
2929
resource.agreement = true
3030

31+
resource.current_sign_in_ip = request.remote_ip if resource.current_sign_in_ip.nil?
3132
resource.build_account if resource.account.nil?
3233
end
3334

0 commit comments

Comments
 (0)