Add the password when sharing a pad with a friend

pull/1/head
yflory 5 years ago
parent c42a79991c
commit 9aebeb216e

@ -412,6 +412,7 @@ define([
if (!friend.notifications || !friend.curvePublic) { return; } if (!friend.notifications || !friend.curvePublic) { return; }
common.mailbox.sendTo("SHARE_PAD", { common.mailbox.sendTo("SHARE_PAD", {
href: href, href: href,
password: config.password,
name: myName, name: myName,
title: title title: title
}, { }, {

@ -2173,6 +2173,7 @@ define([
pathname: "/drive/", pathname: "/drive/",
friends: friends, friends: friends,
title: data.title, title: data.title,
password: data.password,
common: common, common: common,
hashes: { hashes: {
editHash: parsed.hash editHash: parsed.hash
@ -3510,6 +3511,7 @@ define([
friends: friends, friends: friends,
title: data.title, title: data.title,
common: common, common: common,
password: data.password,
hashes: { hashes: {
editHash: parsed.hash editHash: parsed.hash
} }
@ -3523,6 +3525,7 @@ define([
origin: APP.origin, origin: APP.origin,
pathname: "/" + padType + "/", pathname: "/" + padType + "/",
friends: friends, friends: friends,
password: data.password,
hashes: { hashes: {
editHash: parsed.hash, editHash: parsed.hash,
viewHash: roParsed.hash, viewHash: roParsed.hash,

@ -42,6 +42,7 @@ define([
var modal = f({ var modal = f({
origin: origin, origin: origin,
pathname: pathname, pathname: pathname,
password: priv.password,
hashes: hashes, hashes: hashes,
common: common, common: common,
title: data.title, title: data.title,

Loading…
Cancel
Save