Fix login
This commit is contained in:
parent
5940d1d800
commit
965981e112
@ -113,7 +113,7 @@ function auth(data) {
|
|||||||
} else {
|
} else {
|
||||||
var success = 0;
|
var success = 0;
|
||||||
_.each(manager.clients, function(client) {
|
_.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);
|
init(socket, client);
|
||||||
success++;
|
success++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user