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(); }
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" // }; }
public void XmppClient_OnAuthError(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e) { Log.Debug("OnAuthError"); if (this.OnAuthError != null) { this.OnAuthError(this, e.Failure.Condition); } }
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); }
private void xmppClient_OnAuthError(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e) { Console.WriteLine("OnAuthError"); m_xmppClient.Close(); }
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; }
private static void OnAuthError(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e) { Console.WriteLine("OnAuthError"); }
private void xmppClient_OnAuthError(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e)//id or pass ผิด { DisplayEvent("รหัสหรือไอดีผิดพลาด"); ShowMsgbot("รหัสหรือไอดีผิดพลาดหรือเปล่า?"); xmppClient.Close(); }
private void XmppClientOnAuthErrorXML(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e) { Debug.Log("Error:" + e.Error.Text); }
private void xmppclient_OnBeforeSasl(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e) { e.Auto = false; e.SaslMechanism = Matrix.Xmpp.Sasl.SaslMechanism.Plain; }
void xmppClient_OnBeforeSasl(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e) { DisplayEvent("OnBeforeSasl"); }
private void xmppClient_OnAuthError(object sender, Matrix.Xmpp.Sasl.SaslEventArgs e) { DisplayEvent("OnAuthError"); xmppClient.Close(); }