Fix login

This commit is contained in:
Mattias Erming 2014-09-09 10:23:46 -07:00
parent 5940d1d800
commit 965981e112

View file

@ -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++;
}