Skip to content

Commit

Permalink
insert new data by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedeboer committed Feb 24, 2013
1 parent 122e4d5 commit bec46f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/addressbookserver.js
Expand Up @@ -18,7 +18,7 @@ This server features CardDAV support

// Database driver to use. 'redis' is the default, but feel free to use anything
// else supported by jsDAV
var DB_DRIVER = "redis";
var DB_DRIVER = "mongo";

var jsDAV = require("./../lib/jsdav");
jsDAV.debugMode = true;
Expand Down Expand Up @@ -57,7 +57,7 @@ Db.getConnection(DB_ARGS, function(err, db) {
if (err)
throw err;

DB_INIT.init(db, true, function(err) {
DB_INIT.init(db, false, function(err) {
if (err)
throw err;

Expand Down
2 changes: 1 addition & 1 deletion lib/DAV/plugins/auth/mongo.js
Expand Up @@ -34,6 +34,6 @@ var jsDAV_Auth_Backend_Mongo = module.exports = jsDAV_Auth_Backend_AbstractDiges
if (err)
return cbdigest(err);
cbdigest(null, doc && doc.password);
})
});
}
});

0 comments on commit bec46f9

Please sign in to comment.