From 965981e112d6cc35038c64bf16983668f855ec54 Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Tue, 9 Sep 2014 10:23:46 -0700 Subject: [PATCH] Fix login --- src/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.js b/src/server.js index 333f61e4..d040dde2 100644 --- a/src/server.js +++ b/src/server.js @@ -113,7 +113,7 @@ function auth(data) { } else { var success = 0; _.each(manager.clients, function(client) { - if (client.config.name == data.name && client.config.password == data.password) { + if (client.config.user == data.user && client.config.password == data.password) { init(socket, client); success++; }