Return account ID "0" for bad authentication results.

feature-npv2
Icedream 2014-05-15 06:06:36 +02:00
parent aa8abe8649
commit 96d4e1f778
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ namespace NPSharp
// Send authentication result directly to client
client.RPC.Send(new AuthenticateResultMessage
{
NPID = result.UserID,
NPID = result.UserID == null ? 0 : result.UserID.AccountID,
Result = result.Result ? 0 : 1,
SessionToken = msg.Token
});