diff options
Diffstat (limited to 'src/routers/vault/types/Session.js')
-rw-r--r-- | src/routers/vault/types/Session.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/routers/vault/types/Session.js b/src/routers/vault/types/Session.js index d1b3943..e7b44ca 100644 --- a/src/routers/vault/types/Session.js +++ b/src/routers/vault/types/Session.js @@ -75,6 +75,10 @@ module.exports = class Session { * refuse to authenticate a session with a different IP */ strictIPCheck = true; + /** + * allow to authenticate a session with 2FA + PBKDF2 password + */ + allow2FA = false; constructor (ip, email) { this.ip = ip; @@ -109,6 +113,7 @@ module.exports = class Session { primaryIdentity: this.primaryIdentity.id, allowNonPrimary: this.allowNonPrimary, strictIPCheck: this.strictIPCheck, + allow2FA: this.allow2FA, vaultId: this.vault, }; } |