HRM-10/HRM.UI/ClientApp/src/app/_models/Authentication/auditTrail.ts

50 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-11-12 14:58:04 +06:00
import { BaseObject } from '../Basic/baseObject';
/** One successful login (dbo.UserLoginInfo), as returned by api/Authentication/getUserAuditTrail. */
export class UserLogInInfo extends BaseObject {
userID: number;
loginTime: Date;
logoutTime?: Date;
logoutType?: number;
pcNumber: string;
ipAddress: string;
/** Mobile / tab device id; null for a browser login. */
deviceId: string;
loginID: string;
userName: string;
constructor() {
super();
this.userID = 0;
this.loginTime = undefined;
this.logoutTime = undefined;
this.logoutType = undefined;
this.pcNumber = '';
this.ipAddress = '';
this.deviceId = '';
this.loginID = '';
this.userName = '';
}
}
/** One failed login (dbo.BadLoginAttemptInfo), as returned by api/Authentication/getBadLoginAuditTrail. */
export class BadLoginAttemptInfo extends BaseObject {
userID: number;
attemptTime: Date;
pcNumber: string;
ipAddress: string;
/** Mobile / tab device id; null for a browser login. */
deviceId: string;
loginID: string;
userName: string;
constructor() {
super();
this.userID = 0;
this.attemptTime = undefined;
this.pcNumber = '';
this.ipAddress = '';
this.deviceId = '';
this.loginID = '';
this.userName = '';
}
}