Track and display IP address of invitation requests

Description

When a visitor requests an invitation by entering their email address on http://test.archiveofourown.org/invite_requests, their IP address should be recorded.

It should then be displayed to admins on https://test.archiveofourown.org/invite_requests/manage as a column labeled "IP Address." The column should be between "Email Address" and "Action." Abuse believes this will help them more easily identify spammers who are requesting invitations.

Activity

Show:
Sarken
April 3, 2019, 12:46 PM

Migration needs to be run before this can be tested.

Sarken
April 3, 2019, 12:54 PM

james_ ran it, so go forth and test!

Nat
April 4, 2019, 11:59 AM

Sent in a couple of requests, IPs are showing. \o/

redsummernight
April 9, 2019, 12:46 PM

Made 2 requests, "Manage Queue" showed my public IP for both.

Just for fun, set the IP of an invite request to nil from the Rails console. The request is displayed in "Manage Queue" with "IP Address" value "No IP recorded".

Looks good.

Lady Oscar
April 10, 2019, 3:41 PM

Confirmed!

DeployedToBeta

Assignee

Sarken

Reporter

Sarken

Roadmap

Admin
Invitations

Priority

High

Affects versions

Fix versions

Components

BackEnd
FrontEnd

Difficulty

Medium

Required Access Level

Admin

Milestone

Internal 0.9