set saltfactor for Passwords

This commit is contained in:
Berkeley Martinez
2015-06-12 11:38:00 -07:00
parent b9b5a649ee
commit 070a80cb79
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@ module.exports = function(User) {
// see:
// https://github.com/strongloop/loopback/issues/1137#issuecomment-109200135
delete User.validations.email;
// set salt factor for passwords
User.settings.saltWorkFactor = 5;
debug('setting up user hooks');
// send verification email to new camper
User.afterRemote('create', function(ctx, user, next) {