2fa properties on user
This commit is contained in:
parent
275a7ffdcd
commit
c56e4969d0
@ -29,6 +29,8 @@ class User {
|
|||||||
|
|
||||||
/** @private */
|
/** @private */
|
||||||
this._passwordHash = data.password || null;
|
this._passwordHash = data.password || null;
|
||||||
|
this._otpSecret = data.otpSecret || null;
|
||||||
|
this._2fa = data.twoFactor || false;
|
||||||
|
|
||||||
this.cachedTimestamp = Date.now();
|
this.cachedTimestamp = Date.now();
|
||||||
|
|
||||||
@ -98,7 +100,9 @@ class User {
|
|||||||
type: this.type,
|
type: this.type,
|
||||||
permissions: this.permissions,
|
permissions: this.permissions,
|
||||||
externalProfiles: this.externalProfiles,
|
externalProfiles: this.externalProfiles,
|
||||||
password: this._passwordHash
|
password: this._passwordHash,
|
||||||
|
otpSecret: this._otpSecret,
|
||||||
|
twoFactor: this._2fa,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user