We've come across an issue with users logging into the smartfox server.
I'm using the following code:
Code: Select all
var obj = _server.loginUser(nick, pass, chan, true);
if (obj.success == false)
{
error = obj.error;
debugtrace ("Login error: "+error);
response._cmd = "logBad";
response.err = error;
_server.sendResponse(response, -1, null, chan);
}
else
{
....
}
This works in essence, but sometimes (1 out of 30 say) we do get obj.success == false, but obj.error is null! I know for a fact that 'nick' and 'pass' are correct, and I also know that the name is not in use already (plus the fact that we don't get the 'This user name is already taken' message). We get null!!
So this is very hard to debug!!
Can you shed any light on what's happening here please? We're getting members call up and tell us they can't login, and since there is no real direction for us to look here due to obj.error being null, it's hard for us to solve quickly!
Thanks,
G.