private void CheckCredentials(string username, string password) { if (!_blogConfig.CheckUsername(username)) { throw new XmlRpcServerException(401, "Unknown username"); } if (!_blogConfig.CheckPassword(password)) { throw new XmlRpcServerException(401, "Incorrect password"); } }