@experium/nest-bruteforce-guard
Version:
Authorization protection from bruteforce
13 lines (12 loc) • 393 B
TypeScript
import { ObjectID } from 'mongodb';
export declare class LoginAttempt {
id: ObjectID;
login: string;
ip: string;
date: Date;
loginFailure: boolean;
attemptBlocked: boolean;
userDisabled: boolean;
badPassword: boolean;
constructor(login: string, ip: string, loginFailure?: boolean, attemptBlocked?: boolean, userDisabled?: boolean, badPassword?: boolean);
}