Login() public method

public Login ( string user, string password ) : bool
user string
password string
return bool
Ejemplo n.º 1
0
 public bool Login(string username, string password)
 {
     return(_servicesCon.Login(username, password));
 }
Ejemplo n.º 2
0
        private void button_login_Click(object sender, EventArgs e)
        {
            // Create a settings object to define connection settings.
            ServicesSettings settings = new ServicesSettings();
            settings.DrupalURL = textBox_url.Text; //
            settings.UseSessionID = checkBox_sessionID.Checked;
            settings.EndPoint = textBox_endpoint.Text;
            settings.CleanURL = true;

            /*settings.UseKeys = true;//Not Implemented yet
            //settings.Key = "03cfd62180a67dcbcb1be9a7f78dc726";
            settings.DomainName = "localhost";*/

            // Create a connection object
            _serviceCon = new Services(settings);

               if (_serviceCon.Login(textBox_userName.Text, textBox_password.Text))
                   DrutNETBase.sendLogEvent("Login to services successful \n", "Sample", Enums.MessageType.Info);
        }