Exemple #1
0
 private void xmppClient_OnAuthError(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
 {
     xmppClient.Close();
     FrmParent.Instance.HideLoading();
     MessageBox.Show("Tài khoản hoặc mật khẩu không đúng!");
     this.Show();
 }
Exemple #2
0
        private void xmppClient_OnBeforeSasl(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
        {
            e.Auto          = false;
            e.SaslMechanism = Matrix.Xmpp.Sasl.SaslMechanism.Plain;

            /*
             * with the following code you can disable the SASL automatic and manual specify a mechanism.
             *
             * e.Auto = false;
             * e.SaslMechanism = Matrix.Xmpp.Sasl.SaslMechanism.PLAIN;
             */


            // X_FACEBOOK_PLATFORM Facebook Auth example
            //e.Auto = false;
            //e.SaslMechanism = Matrix.Xmpp.Sasl.SaslMechanism.X_FACEBOOK_PLATFORM;

            //const string APPLICATION_KEY = "12345678901234567890";
            //const string SECRET_KEY = "98765432109876543210";
            //e.SaslProperties = new Matrix.Xmpp.Sasl.Processor.Facebook.FacebookProperties
            //                       {
            //                           ApiKey = APPLICATION_KEY,
            //                           ApiSecret = SECRET_KEY,
            //                           SessionKey = "session_key_from_facebook_api"
            //                       };
        }
Exemple #3
0
 public void XmppClient_OnAuthError(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
 {
     Log.Debug("OnAuthError");
     if (this.OnAuthError != null)
     {
         this.OnAuthError(this, e.Failure.Condition);
     }
 }
Exemple #4
0
        private static async void OnAuthError(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
        {
            await LogHelper.LogError("Jabber authentication error. See Jabber.log file for details.", LogCat.Jabber);

            await LogHelper.LogError(e.Failure.ToString(), LogCat.Jabber, false);
        }
Exemple #5
0
 private void xmppClient_OnAuthError(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
 {
     Console.WriteLine("OnAuthError");
     m_xmppClient.Close();
 }
Exemple #6
0
 private void xmppClient_OnBeforeSasl(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
 {
     Console.WriteLine("OnBeforeSasl");
 }
 void client_OnAuthError(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
 {
     Console.WriteLine("{0} auth error.", m_Name);
 }
 void client_OnBeforeSasl(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
 {
     e.SaslMechanism = Matrix.Xmpp.Sasl.SaslMechanism.PLAIN;
 }
Exemple #9
0
 private static void OnAuthError(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
 {
     Console.WriteLine("OnAuthError");
 }
Exemple #10
0
 private void xmppClient_OnAuthError(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)//id or pass ผิด
 {
     DisplayEvent("รหัสหรือไอดีผิดพลาด");
     ShowMsgbot("รหัสหรือไอดีผิดพลาดหรือเปล่า?");
     xmppClient.Close();
 }
Exemple #11
0
 private void XmppClientOnAuthErrorXML(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
 {
     Debug.Log("Error:" + e.Error.Text);
 }
Exemple #12
0
 private void xmppclient_OnBeforeSasl(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
 {
     e.Auto          = false;
     e.SaslMechanism = Matrix.Xmpp.Sasl.SaslMechanism.Plain;
 }
Exemple #13
0
 void xmppClient_OnBeforeSasl(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
 {
     DisplayEvent("OnBeforeSasl");
 }
Exemple #14
0
 private void xmppClient_OnAuthError(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)
 {
     DisplayEvent("OnAuthError");
     xmppClient.Close();
 }