From 0ea97eb0bc5da610e9a740cac00c839a21bbe5ca Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sun, 14 Apr 2024 00:58:57 -0700 Subject: [PATCH] Removed dev logging. --- src/pages/api/auth/login.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/pages/api/auth/login.ts b/src/pages/api/auth/login.ts index 23bdb15f..51c53184 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'); }