From 5bda4b82c75ed60e6171455082dbb03cc36ef479 Mon Sep 17 00:00:00 2001 From: Max Thayer Date: Wed, 21 Aug 2013 23:58:19 -0400 Subject: [PATCH] removed auth lib --- lib/auth.js | 12 ------------ tasks/couchapp.js | 1 - 2 files changed, 13 deletions(-) delete mode 100644 lib/auth.js diff --git a/lib/auth.js b/lib/auth.js deleted file mode 100644 index 16fe02d..0000000 --- a/lib/auth.js +++ /dev/null @@ -1,12 +0,0 @@ -exports.getCookie = function(opts, cb){ - var db = nano(opts.db.url); - nano.auth(opts.username, opts.password, function(err, body, headers){ - if(err){ - cb(err); - }else{ - if(headers && headers['set-cookie']){ - cb(null, headers['set-cookie']); - } - } - }); -} \ No newline at end of file diff --git a/tasks/couchapp.js b/tasks/couchapp.js index 1d94ce7..55c07dc 100644 --- a/tasks/couchapp.js +++ b/tasks/couchapp.js @@ -10,7 +10,6 @@ var path, couchapp, nanolib, urls, auth; path = require('path'); couchapp = require('couchapp'); urls = require('url'); -auth = require('../lib/auth'); var genDB = function(db) { var parts, dbname, auth;