From 7f0bad289d88057737ce0de94f3c6e413c842687 Mon Sep 17 00:00:00 2001 From: gumi Date: Mon, 2 Mar 2020 22:21:14 -0500 Subject: more bugs, yay --- src/routers/vault/middlewares/identity.js | 2 +- src/routers/vault/utils/claim.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routers/vault/middlewares/identity.js b/src/routers/vault/middlewares/identity.js index b95d6e0..51a986f 100644 --- a/src/routers/vault/middlewares/identity.js +++ b/src/routers/vault/middlewares/identity.js @@ -180,7 +180,7 @@ const add_identity = async (req, res, next) => { return; } - for (const [key, pending] of identity_pending) { + for (const [key, pending] of req.app.locals.identity_pending) { if (pending.vault === session.vault && pending.email === req.body.email) { res.status(425).json({ status: "error", diff --git a/src/routers/vault/utils/claim.js b/src/routers/vault/utils/claim.js index 472e05a..b3dbe9d 100644 --- a/src/routers/vault/utils/claim.js +++ b/src/routers/vault/utils/claim.js @@ -72,7 +72,7 @@ const claim_accounts = async (req, email, vault_id, session = null) => { }); } - locals.logger.info(`Vault: linked Legacy account ${acc.accountId} to Vault account {${vault_id}} [${req.ip}]`); + locals.logger.info(`Vault.legacy.account: linked Legacy account ${acc.accountId} to Vault account {${vault_id}} [${req.ip}]`); } // TODO: split TMWA claiming into its own function, add forums and wiki claiming -- cgit v1.2.3-60-g2f50