private void FinishLogin() { //TODO: Successful Log in with this user. User.LoggedInAccount = foundAccount; NextPrompt = new LoggedInMenu(this); Reset(); }
/// <summary> /// Reset a user to logged in to just their account. /// </summary> /// <param name="forClient">Client connection that is logging in.</param> public static StandardHeldPrompt GetLoggedInPrompt(Client forClient) { if (forClient.LoggedInAccount == null) { throw new Exception("Error: User not logged into account to return to logged-in state."); } LoginPrompt parent = new LoginPrompt(forClient); LoggedInMenu child = new LoggedInMenu(parent); parent.NextPrompt = child; parent.Reset(); return(child); }