public bool Login(string username, string password) { return(_servicesCon.Login(username, password)); }
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); }