summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/auth/register.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/api/routes/auth/register.ts b/src/api/routes/auth/register.ts

index 5997b33f..418f0a52 100644 --- a/src/api/routes/auth/register.ts +++ b/src/api/routes/auth/register.ts
@@ -143,6 +143,9 @@ router.post( const ipData = await IpDataClient.getIpInfo(ip); if (ipData) { + if(!ipData.threat) { + console.log("Invalid IPData.co response, missing threat field", ipData); + } const categories = Object.entries(ipData.threat) .filter(([key, value]) => key.startsWith("is_") && value === true) .map(([key]) => key.replace("is_", ""));