diff options
-rw-r--r-- | src/routers/vault/models/vault/identity.js | 4 | ||||
-rw-r--r-- | src/routers/vault/types/Identity.js | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/routers/vault/models/vault/identity.js b/src/routers/vault/models/vault/identity.js index 5162b14..aeac081 100644 --- a/src/routers/vault/models/vault/identity.js +++ b/src/routers/vault/models/vault/identity.js @@ -20,6 +20,10 @@ module.exports = { type: Sequelize.STRING(16), allowNull: true, }, + pass: { + type: Sequelize.STRING(128), + allowNull: true, + }, addedDate: { type: Sequelize.DATE, allowNull: false, diff --git a/src/routers/vault/types/Identity.js b/src/routers/vault/types/Identity.js index 9a83ffe..2a836b2 100644 --- a/src/routers/vault/types/Identity.js +++ b/src/routers/vault/types/Identity.js @@ -24,7 +24,12 @@ class Identity extends Model { */ //totp; /** - * TOTP 16-chars base64 secret + * TOTP 16-chars base64 secret (optional) + * @type {string} + */ + //pass; + /** + * Optional PBKDF2 cryptographic secret to use with 2FA. * @type {string} */ //userId; |