Open and Scrypt invitation link

This commit is contained in:
yflory
2019-12-13 17:03:24 +01:00
parent 9391698f54
commit be9dce674f
5 changed files with 143 additions and 7 deletions

View File

@@ -1267,7 +1267,7 @@ define([
var name = data.name;
var password = data.password;
var msg = data.message;
var href = data.href;
var hash = data.hash;
var bytes64 = data.bytes64;
*/
return void cb();
@@ -1277,6 +1277,20 @@ define([
});
*/
};
var getLinkData = function (ctx, data, cId, cb) {
/*
var password = data.password;
var hash = data.hash;
var bytes64 = data.bytes64;
*/
return void cb();
/*
cb({
error: 'NOT_IMPLEMENTED'
});
*/
};
Team.init = function (cfg, waitFor, emit) {
var team = {};
@@ -1434,6 +1448,9 @@ define([
if (cmd === 'CREATE_INVITE_LINK') {
return void createInviteLink(ctx, data, clientId, cb);
}
if (cmd === 'GET_LINK_DATA') {
return void getLinkData(ctx, data, clientId, cb);
}
};
return team;