mirror of https://github.com/icedream/npsharp.git
Return account ID "0" for bad authentication results.
parent
aa8abe8649
commit
96d4e1f778
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue