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 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/static/scripts.js b/static/scripts.js index a7301d5..bec269f 100644 --- a/static/scripts.js +++ b/static/scripts.js @@ -357,11 +357,17 @@ async function displayProfile(opts) { return; } - let primaryClaims + let primaryClaims; 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; } 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"