aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/users
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-10-07 11:06:28 +0200
committerChocobozzz <me@florianbigard.com>2022-10-07 11:06:28 +0200
commitd12b40fb96d56786a96c06a621f3d8e0a0d24f4a (patch)
tree7047fa5cd7e778eb377c897eccb539c52b2e59bc /client/src/app/core/users
parent56f47830758ff8e92abcfcc5f35d474ab12fe215 (diff)
downloadPeerTube-d12b40fb96d56786a96c06a621f3d8e0a0d24f4a.tar.gz
PeerTube-d12b40fb96d56786a96c06a621f3d8e0a0d24f4a.tar.zst
PeerTube-d12b40fb96d56786a96c06a621f3d8e0a0d24f4a.zip
Implement two factor in client
Diffstat (limited to 'client/src/app/core/users')
-rw-r--r--client/src/app/core/users/user.model.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/core/users/user.model.ts b/client/src/app/core/users/user.model.ts
index 6ba30e4b8..8385a4012 100644
--- a/client/src/app/core/users/user.model.ts
+++ b/client/src/app/core/users/user.model.ts
@@ -66,6 +66,8 @@ export class User implements UserServerModel {
66 66
67 lastLoginDate: Date | null 67 lastLoginDate: Date | null
68 68
69 twoFactorEnabled: boolean
70
69 createdAt: Date 71 createdAt: Date
70 72
71 constructor (hash: Partial<UserServerModel>) { 73 constructor (hash: Partial<UserServerModel>) {
@@ -108,6 +110,8 @@ export class User implements UserServerModel {
108 110
109 this.notificationSettings = hash.notificationSettings 111 this.notificationSettings = hash.notificationSettings
110 112
113 this.twoFactorEnabled = hash.twoFactorEnabled
114
111 this.createdAt = hash.createdAt 115 this.createdAt = hash.createdAt
112 116
113 this.pluginAuth = hash.pluginAuth 117 this.pluginAuth = hash.pluginAuth