33970cbd by Jabis Sevón

user creation stuff

1 parent 1fff05b8
......@@ -88,7 +88,7 @@ server.on("upgrade", async function(request, socket, head) {
if(sig) {
let user = g.user();
user.create(roomname,sig,async function(ack){
console.log("We've got ack",ack);
console.log("We've got create ack",ack);
if(ack.err){ console.log("error in user.create",ack.err); }
let auth = await new Promise ((res,rej)=>{
return user.auth(roomname,sig,res);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!