Remove password from private data

pull/1/head
yflory 4 years ago
parent 5166f7a1b9
commit 2a673bdc0c

@ -626,7 +626,6 @@ define([
}, },
isNewFile: isNewFile, isNewFile: isNewFile,
isDeleted: isDeleted, isDeleted: isDeleted,
password: password,
channel: secret.channel, channel: secret.channel,
enableSF: localStorage.CryptPad_SF === "1", // TODO to remove when enabled by default enableSF: localStorage.CryptPad_SF === "1", // TODO to remove when enabled by default
devMode: localStorage.CryptPad_dev === "1", devMode: localStorage.CryptPad_dev === "1",
@ -651,6 +650,7 @@ define([
if (isSafe) { if (isSafe) {
additionalPriv.hashes = hashes; additionalPriv.hashes = hashes;
additionalPriv.password = password;
} }
for (var k in additionalPriv) { metaObj.priv[k] = additionalPriv[k]; } for (var k in additionalPriv) { metaObj.priv[k] = additionalPriv[k]; }

Loading…
Cancel
Save