Esempio n. 1
0
            public override void AskToApproveOutOfBand(OutOfBandMethod method)
            {
                var thread = new Thread(
                    () =>
                {
                    Main.form.twofactor = new TwoFactor();
                    Main.form.twofactor.showConfirmOnApp();
                    Main.form.twofactor.ShowDialog();
                });

                thread.Start();
            }
Esempio n. 2
0
 // Should return immediately to allow the login process to continue. Once the OOB is approved
 // or declined by the user the library will return the result or throw an error.
 // Cancellation is not supported yet.
 public abstract void AskToApproveOutOfBand(OutOfBandMethod method);
            public override void AskToApproveOutOfBand(OutOfBandMethod method)

            {
                Console.WriteLine("Please approve out-of-band via {0}", method);
            }