internal static void AttemptLogin(string clientId, string username, string passwordAttempt) { if (ChallengeAccountAuthentication(clientId, username, passwordAttempt)) { NetworkEventDispatcher.InvokeUserLoginEvent(new UserLoginEventArgs(clientId, username, true, false)); } else { NetworkEventDispatcher.InvokeUserLoginEvent(new UserLoginEventArgs(clientId, username, false, false)); } }
private void HandleAccountLoginRequest_One(string id, string[] segments) { if (!AccountHandler.AccountOnline(segments[2])) { AccountDatabaseHandler.AttemptLogin(id, segments[2], segments[3]); } else { NetworkEventDispatcher.InvokeUserLoginEvent (new UserLoginEventArgs(id, segments[2], false, true)); } }