Ghost/ghost/members-api/lib
Kevin Ansfield 615a482c48 Store geolocation data during member signup/signin (#128)
requires f38d490886

- adds `lib/geolocation.js` with `getGeolocationFromIP()` function which uses https://geojs.io to lookup geolocation data from an IPv4 or IPv6 address
- updates `create/updateMember()` functions to work with a `geolocation` property in the passed in object
  - if `geolocation` is `undefined` when updating a member do not reset any existing property
- updates `sendMagicLink` middleware to extract the IP address from the request and stores it as part of the token payload
- updates `getMemberDataFromMagicLinkToken()` method to extract the IP address from the token payload and perform a geolocation lookup if we have an IP address and a matching member does not already have geolocation data
2020-02-27 10:29:36 +00:00
..
stripe Revert "Added precaution to avoid creating multiple Complimentary plans" 2020-02-27 16:55:03 +08:00
common.js Added subscription update middleware (#107) 2019-12-12 15:19:36 +07:00
geolocation.js Store geolocation data during member signup/signin (#128) 2020-02-27 10:29:36 +00:00
metadata.js Extracted metadata get/set methods into internal metadata module 2020-01-13 15:45:22 +07:00
tokens.js Updated members-api to use magic-link 2019-09-03 15:35:04 +08:00
users.js Store geolocation data during member signup/signin (#128) 2020-02-27 10:29:36 +00:00