diff --git a/src/server/structures/User.js b/src/server/structures/User.js index 5986f6c..c78849f 100644 --- a/src/server/structures/User.js +++ b/src/server/structures/User.js @@ -29,6 +29,8 @@ class User { /** @private */ this._passwordHash = data.password || null; + this._otpSecret = data.otpSecret || null; + this._2fa = data.twoFactor || false; this.cachedTimestamp = Date.now(); @@ -98,7 +100,9 @@ class User { type: this.type, permissions: this.permissions, externalProfiles: this.externalProfiles, - password: this._passwordHash + password: this._passwordHash, + otpSecret: this._otpSecret, + twoFactor: this._2fa, }; }