Ejemplo n.º 1
0
        public new static void PrintAskSecondPasswordMessage(AskSecondPasswordMessage msg, object tag)
        {
            MessagePrinter.PrintAskSecondPasswordMessage(msg, tag);
            FrontendConnect fc = (FrontendConnect)tag;

            if (fc.State == LoginState.WaitAskSecondPassword)
            {
                fc.State = LoginState.WaitHasSecondPassword;
            }
            else
            {
                throw new Exception("Asked for second password at wrong time");
            }
        }