The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/2fa/server/code/ICodeCheck.ts

17 lines
371 B

import { IUser } from '../../../../definition/IUser';
export interface IProcessInvalidCodeResult {
codeGenerated: boolean;
codeCount?: number;
codeExpires?: Date[];
}
export interface ICodeCheck {
readonly name: string;
isEnabled(user: IUser): boolean;
verify(user: IUser, code: string): boolean;
processInvalidCode(user: IUser): IProcessInvalidCodeResult;
}