@tomei/sso
Version:
Tomei SSO Package
21 lines (20 loc) • 926 B
TypeScript
import { ObjectBase } from '@tomei/general';
import { IUserPasswordHistoryAttr } from '../../interfaces/user-password-history.interface';
import { PasswordHashService } from '../../components/password-hash';
export declare class UserPasswordHistory extends ObjectBase implements IUserPasswordHistoryAttr {
ObjectId: string;
ObjectName: string;
ObjectType: string;
TableName: string;
UserId: number;
PasswordHash: string;
private _CreatedAt;
private static _Repo;
get HistoryId(): string;
set HistoryId(value: string);
get CreatedAt(): Date;
private constructor();
static init(historyId?: number, dbTransaction?: any): Promise<UserPasswordHistory>;
static validate(dbTransaction: any, UserId: number, Password: string, passwordHashService: PasswordHashService): Promise<void>;
static create(dbTransaction: any, UserId: number, PasswordHash: string): Promise<void>;
}