diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/register.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/register.ts b/lib/register.ts index a74ea640..bd1049c8 100644 --- a/lib/register.ts +++ b/lib/register.ts @@ -36,6 +36,8 @@ export default async (user, ip) => { }); } + user.created = Date.now(); + user.currency = "USD"; if (config.ipregistry) { try { @@ -46,6 +48,7 @@ export default async (user, ip) => { ).json(); user.currency = countries[code]; + user.country = code; // stored for analytics (signup geography) } catch (e) { warn("unable to detect country from IP", username); } |
