From 126cd33af0fca8051eb9ecc357adcd2f11b7eed8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 9 May 2021 20:32:04 -0300 Subject: Add an (unused) password field to store PBKDF2 hashes to go along TOTP --- src/routers/vault/models/vault/identity.js | 4 ++++ src/routers/vault/types/Identity.js | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-60-g2f50