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

@@ -1651,7 +1651,7 @@ define([
}),
h('br'),
linkMessage = h('textarea', {
placeholder: 'note...'
placeholder: 'note...' // XXX
})
]),
linkSpin = h('div', {
@@ -1677,7 +1677,6 @@ define([
var hash = Hash.createRandomHash('invite', pw);
var hashData = Hash.parseTypeHash('invite', hash);
href = origin + '/teams/#' + hash;
console.log(hashData);
if (!name || !name.trim()) {
$(linkError).text('empty name...').show(); // XXX
return true;
@@ -1707,7 +1706,7 @@ define([
password: pw,
message: msg,
bytes64: bytes64,
href: href,
hash: hash,
teamId: config.teamId,
}, waitFor(function (obj) {
if (obj && obj.error) {