From 340c8dbd07a9aecb43ccccb9c6fd6245f9d7d0a1 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 26 Dec 2020 23:45:55 +0100 Subject: [PATCH 1/3] Update deps --- package.json | 4 ++-- yarn.lock | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 9e4101b..e6d9ccd 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "keyoxide-web", - "version": "2.3.2", + "version": "2.3.3", "description": "A modern, secure and privacy-friendly platform to establish your decentralized online identity", "main": "index.js", "dependencies": { "bent": "^7.3.12", - "doipjs": "^0.8.1", + "doipjs": "^0.8.3", "dotenv": "^8.2.0", "express": "^4.17.1", "express-validator": "^6.8.0", diff --git a/yarn.lock b/yarn.lock index 40ad09f..db0d0fd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -703,10 +703,10 @@ doctypes@^1.1.0: resolved "https://registry.yarnpkg.com/doctypes/-/doctypes-1.1.0.tgz#ea80b106a87538774e8a3a4a5afe293de489e0a9" integrity sha1-6oCxBqh1OHdOijpKWv4pPeSJ4Kk= -doipjs@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/doipjs/-/doipjs-0.8.1.tgz#acd6ef91cb9709de9422580aac2498c91aa21bc5" - integrity sha512-9N/BucE3qr0NX2Z3ESsn4PDClZNfFTwMjGagI4xMOCT1Dx9ZkvoeO48SqVTAU02ENHquiXl7RdSR2HKWenN2Ww== +doipjs@^0.8.3: + version "0.8.3" + resolved "https://registry.yarnpkg.com/doipjs/-/doipjs-0.8.3.tgz#94bcb132cbca031b3f9b5a9834648b26f131e493" + integrity sha512-lhR437R3qctCDY86UVOD4UclHvxyQ1lFFpLHjeb22QxVSk+I2AaaNaaE8ap+CtKlzkLt2TEyStaI78s+7sc+bQ== dependencies: bent "^7.3.12" browserify "^17.0.0" From d2fce497a2f7124467e96c33f669fdb136a23c91 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 26 Dec 2020 23:48:17 +0100 Subject: [PATCH 2/3] Handle null userIds --- static/scripts.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/scripts.js b/static/scripts.js index 0dfc93f..a740527 100644 --- a/static/scripts.js +++ b/static/scripts.js @@ -362,6 +362,12 @@ async function displayProfile(opts) { feedback = ""; if (userMail) { verifications.forEach((userId, i) => { + if (!keyData.users[i].userId) { + keyData.users[i].userId = { + email: 'email not specified' + } + } + if (keyData.users[i].userId.email != userMail) { return; } From 82e0924fef1300d9a34a6368086a05595a8dfded Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 26 Dec 2020 23:49:39 +0100 Subject: [PATCH 3/3] Release 2.3.3 --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a973896..84cafcd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [2.3.3] - 2020-12-26 +### Fixed +- Variable used in URL returned undefined + ## [2.3.2] - 2020-12-24 ### Fixed - Variable used in URL returned undefined