removed auth lib
This commit is contained in:
parent
afffe75a73
commit
5bda4b82c7
12
lib/auth.js
12
lib/auth.js
|
@ -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']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
|
@ -10,7 +10,6 @@ var path, couchapp, nanolib, urls, auth;
|
||||||
path = require('path');
|
path = require('path');
|
||||||
couchapp = require('couchapp');
|
couchapp = require('couchapp');
|
||||||
urls = require('url');
|
urls = require('url');
|
||||||
auth = require('../lib/auth');
|
|
||||||
|
|
||||||
var genDB = function(db) {
|
var genDB = function(db) {
|
||||||
var parts, dbname, auth;
|
var parts, dbname, auth;
|
||||||
|
|
Loading…
Reference in New Issue