From 3cc665f48fd233d09f778d7e887488dde6f03ef6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 7 May 2020 10:39:09 +0200 Subject: Add last login date to users --- client/src/app/shared/users/user.model.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client') diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts index 3f6743bef..3348fe75f 100644 --- a/client/src/app/shared/users/user.model.ts +++ b/client/src/app/shared/users/user.model.ts @@ -71,6 +71,8 @@ export class User implements UserServerModel { pluginAuth: string | null + lastLoginDate: Date | null + createdAt: Date constructor (hash: Partial) { @@ -115,6 +117,7 @@ export class User implements UserServerModel { this.createdAt = hash.createdAt this.pluginAuth = hash.pluginAuth + this.lastLoginDate = hash.lastLoginDate if (hash.account !== undefined) { this.account = new Account(hash.account) -- cgit v1.2.3