User and Client lists show the last logins.

This commit is contained in:
2020-12-05 09:03:11 +05:30
parent c2e8c0382a
commit 9aeb71d566
13 changed files with 102 additions and 61 deletions

View File

@ -1,9 +1,9 @@
export class UserGroup {
export class UserRole {
id: string | undefined;
name: string;
enabled: boolean;
public constructor(init?: Partial<UserGroup>) {
public constructor(init?: Partial<UserRole>) {
this.name = '';
this.enabled = true;
Object.assign(this, init);

View File

@ -1,16 +1,18 @@
import { UserGroup } from './user-group';
import { UserRole } from './user-role';
export class User {
id: string | undefined;
name: string;
password: string;
lockedOut: boolean;
roles: UserGroup[];
roles: UserRole[];
perms: string[];
isAuthenticated: boolean;
access_token?: string;
exp: number;
ver: string;
lastDevice: string;
lastDate?: string;
public constructor(init?: Partial<User>) {
this.name = '';
@ -21,6 +23,7 @@ export class User {
this.isAuthenticated = false;
this.exp = 0;
this.ver = '';
this.lastDevice = '';
Object.assign(this, init);
}
}