diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-09 20:36:38 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-09 20:36:38 -0300 |
commit | e357c0caeaad6f4daabd3be49e222ef521b2707c (patch) | |
tree | 224ae976331e1fc2450c68a93470e430059b5627 /src/routers/vault/types/Session.js | |
parent | 126cd33af0fca8051eb9ecc357adcd2f11b7eed8 (diff) | |
download | api-e357c0caeaad6f4daabd3be49e222ef521b2707c.tar.gz api-e357c0caeaad6f4daabd3be49e222ef521b2707c.tar.bz2 api-e357c0caeaad6f4daabd3be49e222ef521b2707c.tar.xz api-e357c0caeaad6f4daabd3be49e222ef521b2707c.zip |
(untested) extend login table to allow 2FA activation (method itself still unsupported)
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, }; } |