mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
Removed dev logging.
This commit is contained in:
parent
1579beef5b
commit
0ea97eb0bc
1 changed files with 0 additions and 11 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
import redis from '@umami/redis-client';
|
import redis from '@umami/redis-client';
|
||||||
import debug from 'debug';
|
|
||||||
import { saveAuth } from 'lib/auth';
|
import { saveAuth } from 'lib/auth';
|
||||||
import { secret } from 'lib/crypto';
|
import { secret } from 'lib/crypto';
|
||||||
import { useValidate } from 'lib/middleware';
|
import { useValidate } from 'lib/middleware';
|
||||||
|
|
@ -16,9 +15,6 @@ import {
|
||||||
import { getUserByUsername } from 'queries';
|
import { getUserByUsername } from 'queries';
|
||||||
import * as yup from 'yup';
|
import * as yup from 'yup';
|
||||||
import { ROLES } from 'lib/constants';
|
import { ROLES } from 'lib/constants';
|
||||||
import { getIpAddress } from 'lib/detect';
|
|
||||||
|
|
||||||
const log = debug('umami:auth');
|
|
||||||
|
|
||||||
export interface LoginRequestBody {
|
export interface LoginRequestBody {
|
||||||
username: string;
|
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');
|
return unauthorized(res, 'message.incorrect-username-password');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue