User and Client lists show the last logins.
This commit is contained in:
@ -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);
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user