diff --git a/app/models/User.js b/app/models/User.js index 5e4c514..87a1e44 100644 --- a/app/models/User.js +++ b/app/models/User.js @@ -24,6 +24,11 @@ var UserSchema = mongoose.Schema({ date: Date }); -UserSchema.plugin(passportLocalMongoose, {usernameField: 'canonicalname'}); +UserSchema.plugin(passportLocalMongoose, { + usernameField: 'canonicalname', + saltlen: 32, + iterations: 10000, + limitAttempts: true +}); module.exports = mongoose.model('User', UserSchema); \ No newline at end of file