diff --git a/doc/Doichain-WhitePaper.odt b/doc/Doichain-WhitePaper.odt index 5eeebbd2..024bd091 100644 Binary files a/doc/Doichain-WhitePaper.odt and b/doc/Doichain-WhitePaper.odt differ diff --git a/doc/Doichain-WhitePaper.pdf b/doc/Doichain-WhitePaper.pdf new file mode 100644 index 00000000..92952d47 Binary files /dev/null and b/doc/Doichain-WhitePaper.pdf differ diff --git a/doc/Doichain-WhitePaper_Entwurf.odt b/doc/Doichain-WhitePaper_Entwurf.odt new file mode 100644 index 00000000..0d1eb913 Binary files /dev/null and b/doc/Doichain-WhitePaper_Entwurf.odt differ diff --git a/imports/modules/server/opt-ins/verify.js b/imports/modules/server/opt-ins/verify.js index eaa13607..98cd84f0 100644 --- a/imports/modules/server/opt-ins/verify.js +++ b/imports/modules/server/opt-ins/verify.js @@ -38,6 +38,7 @@ const verifyOptIn = (data) => { signature: entryData.signature, publicKey: ourData.recipient_public_key }) + if(!firstCheck) return false; const parts = ourData.recipient_mail.split("@"); const domain = parts[parts.length-1]; @@ -48,6 +49,7 @@ const verifyOptIn = (data) => { signature: entryData.doiSignature, publicKey: publicKey }) + if(!secondCheck) return false; return true; } catch (exception) {