Fix password change issues with read-only pads or from the drive

This commit is contained in:
yflory
2020-02-06 15:35:58 +01:00
parent 086e500b8e
commit 12a45377e7
3 changed files with 35 additions and 18 deletions

View File

@@ -1125,12 +1125,12 @@ define([
});
sframeChan.on('Q_OO_PASSWORD_CHANGE', function (data, cb) {
data.href = data.href || currentPad.href;
data.href = data.href;
Cryptpad.changeOOPassword(data, cb);
});
sframeChan.on('Q_PAD_PASSWORD_CHANGE', function (data, cb) {
data.href = data.href || currentPad.href;
data.href = data.href;
Cryptpad.changePadPassword(Cryptget, Crypto, data, cb);
});