From 9aebeb216e32f4830c31b3cfb00bfbc4a57fe21c Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 1 Jul 2019 18:06:16 +0200 Subject: [PATCH] Add the password when sharing a pad with a friend --- www/common/common-ui-elements.js | 1 + www/drive/inner.js | 3 +++ www/share/inner.js | 1 + 3 files changed, 5 insertions(+) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 3149e4e5d..abe9c7938 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -412,6 +412,7 @@ define([ if (!friend.notifications || !friend.curvePublic) { return; } common.mailbox.sendTo("SHARE_PAD", { href: href, + password: config.password, name: myName, title: title }, { diff --git a/www/drive/inner.js b/www/drive/inner.js index 596465396..c2c0332a4 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -2173,6 +2173,7 @@ define([ pathname: "/drive/", friends: friends, title: data.title, + password: data.password, common: common, hashes: { editHash: parsed.hash @@ -3510,6 +3511,7 @@ define([ friends: friends, title: data.title, common: common, + password: data.password, hashes: { editHash: parsed.hash } @@ -3523,6 +3525,7 @@ define([ origin: APP.origin, pathname: "/" + padType + "/", friends: friends, + password: data.password, hashes: { editHash: parsed.hash, viewHash: roParsed.hash, diff --git a/www/share/inner.js b/www/share/inner.js index fbc1f48cc..d50bb9a9c 100644 --- a/www/share/inner.js +++ b/www/share/inner.js @@ -42,6 +42,7 @@ define([ var modal = f({ origin: origin, pathname: pathname, + password: priv.password, hashes: hashes, common: common, title: data.title,