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');
|
||||
couchapp = require('couchapp');
|
||||
urls = require('url');
|
||||
auth = require('../lib/auth');
|
||||
|
||||
var genDB = function(db) {
|
||||
var parts, dbname, auth;
|
||||
|
|
Loading…
Reference in New Issue