annotate flow for changeUserPassword

pull/1/head
ansuz 4 years ago
parent 50045c08d0
commit b42adf5576

@ -416,7 +416,7 @@ define([
});
};
common.writeLoginBlock = function (data, cb) {
common.writeLoginBlock = function (data, cb) { // XXX restricted-registration
postMessage('WRITE_LOGIN_BLOCK', data, function (obj) {
cb(obj);
});
@ -1746,7 +1746,7 @@ define([
});
});
};
common.changeUserPassword = function (Crypt, edPublic, data, cb) {
common.changeUserPassword = function (Crypt, edPublic, data, cb) { // XXX restricted-registration
if (!edPublic) {
return void cb({
error: 'E_NOT_LOGGED_IN'

@ -24,7 +24,7 @@ define([
UPLOAD_COMPLETE: Store.uploadComplete,
UPLOAD_STATUS: Store.uploadStatus,
UPLOAD_CANCEL: Store.uploadCancel,
WRITE_LOGIN_BLOCK: Store.writeLoginBlock,
WRITE_LOGIN_BLOCK: Store.writeLoginBlock, // XXX restricted-registration
REMOVE_LOGIN_BLOCK: Store.removeLoginBlock,
PIN_PADS: Store.pinPads,
UNPIN_PADS: Store.unpinPads,

@ -220,7 +220,7 @@ var factory = function (Util, Rpc) {
});
};
exp.writeLoginBlock = function (data, cb) {
exp.writeLoginBlock = function (data, cb) { // XXX restricted-registration
if (!data) { return void cb('NO_DATA'); }
if (!data.publicKey || !data.signature || !data.ciphertext) {
console.log(data);

@ -1557,7 +1557,7 @@ define([
});
sframeChan.on('Q_CHANGE_USER_PASSWORD', function (data, cb) {
Cryptpad.changeUserPassword(Cryptget, edPublic, data, cb);
Cryptpad.changeUserPassword(Cryptget, edPublic, data, cb); // XXX restricted-registration
});
sframeChan.on('Q_WRITE_LOGIN_BLOCK', function (data, cb) {

Loading…
Cancel
Save