Got authentication between the server and the client
This commit is contained in:
parent
40e469514a
commit
1a4ae14242
|
@ -0,0 +1 @@
|
||||||
|
profiles.json
|
|
@ -371,17 +371,13 @@ function connect(profile, connection_id)
|
||||||
|
|
||||||
//console.log("Sending 1:", data['out']);
|
//console.log("Sending 1:", data['out']);
|
||||||
|
|
||||||
// Send status
|
// Send login
|
||||||
socket_write(client, g.encryption, 1);
|
console.log("Sending login")
|
||||||
|
socket_write(client, g.encryption, {
|
||||||
console.log("Trying to get login data");
|
mode: "login",
|
||||||
|
username: profile.username,
|
||||||
// Create a variable
|
password: profile.password
|
||||||
var userdata_filename = "servers/"+hostname+":"+port.toString()+".json";
|
});
|
||||||
console.log(userdata_filename);
|
|
||||||
|
|
||||||
// Try and get the users login data
|
|
||||||
//var userdata = readFile()
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue