Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Removed dev logging.
Mike Cao0ea97eb0bc5d
diff --git a/src/pages/api/auth/login.ts b/src/pages/api/auth/login.tsindex 23bdb15fc..51c53184e 100644--- a/src/pages/api/auth/login.ts+++ b/src/pages/api/auth/login.ts@@ -1,5 +1,4 @@import redis from '@umami/redis-client';-import debug from 'debug';import { saveAuth } from 'lib/auth';import { secret } from 'lib/crypto';import { useValidate } from 'lib/middleware';@@ -16,9 +15,6 @@ import {import { getUserByUsername } from 'queries';import * as yup from 'yup';import { ROLES } from 'lib/constants';-import { getIpAddress } from 'lib/detect';--const log = debug('umami:auth');export interface LoginRequestBody {username: string;@@ -68,13 +64,6 @@ export default async (});}- log(- `Login from ip ${getIpAddress(req)} with username "${username.replace(- /["\r\n]/g,- '',- )}" failed.`,- );-return unauthorized(res, 'message.incorrect-username-password');}