set saltfactor for Passwords
parent
b9b5a649ee
commit
070a80cb79
|
@ -8,6 +8,8 @@ module.exports = function(User) {
|
||||||
// see:
|
// see:
|
||||||
// https://github.com/strongloop/loopback/issues/1137#issuecomment-109200135
|
// https://github.com/strongloop/loopback/issues/1137#issuecomment-109200135
|
||||||
delete User.validations.email;
|
delete User.validations.email;
|
||||||
|
// set salt factor for passwords
|
||||||
|
User.settings.saltWorkFactor = 5;
|
||||||
debug('setting up user hooks');
|
debug('setting up user hooks');
|
||||||
// send verification email to new camper
|
// send verification email to new camper
|
||||||
User.afterRemote('create', function(ctx, user, next) {
|
User.afterRemote('create', function(ctx, user, next) {
|
||||||
|
|
|
@ -242,5 +242,5 @@
|
||||||
"property": "doesExist"
|
"property": "doesExist"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"methods": ["login"]
|
"methods": []
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue