Example #1
0
        public new static void PrintSecondPasswordResultMessage(SecondPasswordResultMessage msg, object tag)
        {
            MessagePrinter.PrintSecondPasswordResultMessage(msg, tag);
            FrontendConnect fc = (FrontendConnect)tag;

            if (!msg.Passed)
            {
                Console.WriteLine("Wrong second password entered, exiting");
                throw new Exception("Wrong second password");
            }
            if (fc.State == LoginState.WaitSecondPasswordResult)
            {
                fc.State = LoginState.SelectCharacter;
            }
        }