mirror of
https://github.com/Foltik/Shimapan
synced 2025-01-07 08:42:49 -05:00
Reduce pbkdf2 iterations
This commit is contained in:
parent
4d0c3ac865
commit
c246d3738a
@ -24,6 +24,11 @@ var UserSchema = mongoose.Schema({
|
|||||||
date: Date
|
date: Date
|
||||||
});
|
});
|
||||||
|
|
||||||
UserSchema.plugin(passportLocalMongoose, {usernameField: 'canonicalname'});
|
UserSchema.plugin(passportLocalMongoose, {
|
||||||
|
usernameField: 'canonicalname',
|
||||||
|
saltlen: 32,
|
||||||
|
iterations: 10000,
|
||||||
|
limitAttempts: true
|
||||||
|
});
|
||||||
|
|
||||||
module.exports = mongoose.model('User', UserSchema);
|
module.exports = mongoose.model('User', UserSchema);
|
Loading…
Reference in New Issue
Block a user