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/models | |
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/models')
-rw-r--r-- | src/routers/vault/models/vault/login.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/routers/vault/models/vault/login.js b/src/routers/vault/models/vault/login.js index 2167376..32b6c42 100644 --- a/src/routers/vault/models/vault/login.js +++ b/src/routers/vault/models/vault/login.js @@ -23,6 +23,12 @@ module.exports = { defaultValue: false, allowNull: false, }, + allow2FA: { + field: "allow_2fa_login", + type: Sequelize.BOOLEAN, + defaultValue: false, + allowNull: false, + }, creationDate: { type: Sequelize.DATE, allowNull: false, |