updated build system

This commit is contained in:
Marc Wäckerlin committed 2018-04-04 20:19:13 +00:00
1 parent 1f1ae4936d
commit 3b965156ad
13 files changed
+862 -394

No files matched your search

+2 -2
View File
@@ -26,11 +26,11 @@ module.exports = function(chatserver, keyserver) {
privateKeys: privkey
}).then(function(ciphertext) {
openpgp.decrypt({
message: ciphertext,
message: openpgp.message.readArmored(ciphertext.data),
publicKeys: openpgp.key.readArmored(_user.key.pub).keys[0],
privateKey: privkey
}).then(function(plaintext) {
if (data==plaintext) {
if (data==plaintext.data) {
success(_user)
} else {
fail('local key does not match key on server')