This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxy http://{proxy_server}:{proxy_port} | |
https-proxy http://{proxy_server}:{proxy_port} | |
strict-ssl=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created with JetBrains WebStorm. | |
* User: ynonperek | |
* Date: 1/28/13 | |
* Time: 9:14 PM | |
* | |
* Mongoose plugin that adds a hashed password field | |
*/ | |
var bcrypt = require('bcrypt'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// lastMod.js | |
module.exports = exports = function lastModifiedPlugin (schema, options) { | |
schema.add({ lastMod: Date }) | |
schema.pre('save', function (next) { | |
this.lastMod = new Date | |
next() | |
}) | |
if (options && options.index) { |