1
0
mirror of https://github.com/Foltik/Shimapan synced 2025-01-05 15:58:03 -05:00

Reduce pbkdf2 iterations

This commit is contained in:
Jack Foltz 2018-07-25 18:45:08 -04:00
parent 4d0c3ac865
commit c246d3738a
Signed by: foltik
GPG Key ID: 303F88F996E95541

View File

@ -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);