users and passwords

This commit is contained in:
ntr
2018-09-13 20:00:21 +10:00
parent 2996082209
commit 9fe0caeab5
4 changed files with 50 additions and 13 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ ws.binaryType = 'arraybuffer';
// Connection opened
ws.addEventListener('open', function (event) {
ws.send(cbor.encode({ method: 'cryp_generate', params: { level: 64 }}));
ws.send(cbor.encode({ method: 'account_create', params: { name: 'ntr' }}));
ws.send(cbor.encode({ method: 'account_create', params: { name: 'ntr', password: 'grep' }}));
});
// Listen for messages