Working as it should. Except you need to type in your password after you created the pad. But that I won't fix today.

This commit is contained in:
jaseg 2011-12-06 23:12:58 +01:00
parent e9f6a10039
commit c905fd76c1
8 changed files with 182 additions and 17 deletions

View file

@ -92,7 +92,7 @@ exports.setSocketIO = function(_socket)
{
if(message.protocolVersion && message.protocolVersion != 2)
{
messageLogger.warn("Protocolversion header is not correct:" + stringifyWithoutPassword(message));
messageLogger.warn("Protocol version header is not correct:" + stringifyWithoutPassword(message));
return;
}
@ -121,14 +121,14 @@ exports.setSocketIO = function(_socket)
else
{
messageLogger.warn("Authentication try failed:" + stringifyWithoutPassword(message));
client.json.send({accessStatus: statusObject.accessStatus});
client.json.send({accessStatus: statusObject.accessStatus, passwordSalt: statusObject.passwordSalt});
}
});
}
//drop message
else
{
messageLogger.warn("Droped message cause of bad permissions:" + stringifyWithoutPassword(message));
messageLogger.warn("Dropped message cause of insufficient permissions:" + stringifyWithoutPassword(message));
}
}
});