public bool CheckLogin(string login, string password) { string oldConnectionString = connection.ConnectionString; setupConnectionParameters(login, password); SzpifTransaction checkLogin = new SzpifTransaction(); checkLogin.tryExecute(); connection.ConnectionString = oldConnectionString; return checkLogin.Failed == false; }
public bool CheckLogin(string login, string password) { string oldConnectionString = connection.ConnectionString; setupConnectionParameters(login, password); SzpifTransaction checkLogin = new SzpifTransaction(); checkLogin.tryExecute(); connection.ConnectionString = oldConnectionString; return(checkLogin.Failed == false); }